MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / encode_vector2

Function encode_vector2

core/input/input_event_codec.cpp:77–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77int encode_vector2(const Vector2 &p_vector, uint8_t *p_data) {
78 p_data += encode_float(p_vector.x, p_data);
79 encode_float(p_vector.y, p_data);
80 return sizeof(float) * 2;
81}
82
83const uint8_t *decode_vector2(Vector2 &r_vector, const uint8_t *p_data) {
84 r_vector.x = decode_float(p_data);

Calls 1

encode_floatFunction · 0.85

Tested by

no test coverage detected