MCPcopy Create free account
hub / github.com/LAStools/LAStools / putByte

Method putByte

LASzip/src/bytestreamout_array.hpp:119–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119inline BOOL ByteStreamOutArray::putByte(U8 byte)
120{
121 if (curr == alloc)
122 {
123 alloc += 4096;
124 data = (U8*)realloc_las(data, (U32)alloc);
125 if (data == 0)
126 {
127 return FALSE;
128 }
129 }
130 data[curr] = byte;
131 if (curr == size) size++;
132 curr++;
133 return TRUE;
134}
135
136inline BOOL ByteStreamOutArray::putBytes(const U8* bytes, U32 num_bytes)
137{

Callers

nothing calls this directly

Calls 1

realloc_lasFunction · 0.85

Tested by

no test coverage detected