32 this->buffer =
buffer->buffer;
55 uint32_t floatAsInt = 0;
60 return *((
float*)&floatAsInt);
77 Buffer::put((
const uint8_t*)values.data(), 2 *
sizeof(
float));
86 Buffer::put((
const uint8_t*)values.data(), 3 *
sizeof(
float));
95 Buffer::put((
const uint8_t*)values.data(), 4 *
sizeof(
float));
104 Buffer::put((
const uint8_t*)values.data(), 16 *
sizeof(
float));
uint8_t get(int64_t position) const
vector< uint8_t > * buffer
Buffer * put(uint8_t value)
Put value into buffer.
virtual int64_t getCapacity() const
virtual int64_t getPosition() const
FloatBuffer * put(float value)
Put a float value into float buffer.
float get(int64_t position)
Get a value at given position.
virtual int64_t getCapacity()
FloatBuffer * put(const array< float, 4 > &values)
Put float values into float buffer.
virtual int64_t getPosition()
FloatBuffer * put(const array< float, 2 > &values)
Put float values into float buffer.
FloatBuffer * put(const array< float, 3 > &values)
Put float values into float buffer.
FloatBuffer * put(const array< float, 16 > &values)
Put float values into float buffer.
FloatBuffer()
Default constructor.
FloatBuffer(Buffer *buffer)
Public constructor.