Function to_chars

Summary

#include <samples/quickstart.cpp>

(1) template <class T>
    size_t to_chars(ryml::substr buf, vec2< T > v)

(2) template <class T>
    size_t to_chars(ryml::substr buf, vec3< T > v)

(3) template <class T>
    size_t to_chars(ryml::substr buf, vec4< T > v)

(4) template <class T>
    size_t to_chars(ryml::substr buf, emit_only_vec2< T > v)

(5) template <class T>
    size_t to_chars(ryml::substr buf, emit_only_vec3< T > v)

(6) template <class T>
    size_t to_chars(ryml::substr buf, emit_only_vec4< T > v)

Function overload

Synopsis

#include <samples/quickstart.cpp>

template <class T>
size_t to_chars(ryml::substr buf, vec2< T > v)

Description

to_chars(): only needed for emitting

format v to the given string view + return the number of characters written into it. The view size (buf.len) must be strictly respected. Return the number of characters that need to be written. So if the return value is larger than buf.len, ryml will resize the buffer and call this again with a larger buffer of the correct size.

Mentioned in

Source

Lines 2513-2513 in samples/quickstart.cpp.

template<class T> size_t to_chars(ryml::substr buf, vec2<T> v) { return ryml::format(buf, "({},{})", v.x, v.y); }

Synopsis

#include <samples/quickstart.cpp>

template <class T>
size_t to_chars(ryml::substr buf, vec3< T > v)

Description

No description yet.

Mentioned in

Source

Lines 2514-2514 in samples/quickstart.cpp.

template<class T> size_t to_chars(ryml::substr buf, vec3<T> v) { return ryml::format(buf, "({},{},{})", v.x, v.y, v.z); }

Synopsis

#include <samples/quickstart.cpp>

template <class T>
size_t to_chars(ryml::substr buf, vec4< T > v)

Description

No description yet.

Mentioned in

Source

Lines 2515-2515 in samples/quickstart.cpp.

template<class T> size_t to_chars(ryml::substr buf, vec4<T> v) { return ryml::format(buf, "({},{},{},{})", v.x, v.y, v.z, v.w); }

Synopsis

#include <samples/quickstart.cpp>

template <class T>
size_t to_chars(ryml::substr buf, emit_only_vec2< T > v)

Description

No description yet.

Mentioned in

Source

Lines 2517-2517 in samples/quickstart.cpp.

template<class T> size_t to_chars(ryml::substr buf, emit_only_vec2<T> v) { return ryml::format(buf, "({},{})", v.x, v.y); }

Synopsis

#include <samples/quickstart.cpp>

template <class T>
size_t to_chars(ryml::substr buf, emit_only_vec3< T > v)

Description

No description yet.

Mentioned in

Source

Lines 2518-2518 in samples/quickstart.cpp.

template<class T> size_t to_chars(ryml::substr buf, emit_only_vec3<T> v) { return ryml::format(buf, "({},{},{})", v.x, v.y, v.z); }

Synopsis

#include <samples/quickstart.cpp>

template <class T>
size_t to_chars(ryml::substr buf, emit_only_vec4< T > v)

Description

No description yet.

Mentioned in

Source

Lines 2519-2519 in samples/quickstart.cpp.

template<class T> size_t to_chars(ryml::substr buf, emit_only_vec4<T> v) { return ryml::format(buf, "({},{},{},{})", v.x, v.y, v.z, v.w); }





Add Discussion as Guest

Log in