MCPcopy Create free account
hub / github.com/LASzip/LASzip / putBytes

Method putBytes

src/bytestreamout_array.hpp:136–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136inline BOOL ByteStreamOutArray::putBytes(const U8* bytes, U32 num_bytes)
137{
138 if ((curr+num_bytes) > alloc)
139 {
140 alloc += (4096+num_bytes);
141 data = (U8*)realloc_las(data, (U32)alloc);
142 if (data == 0)
143 {
144 return FALSE;
145 }
146 }
147 memcpy((void*)(data+curr), bytes, num_bytes);
148 curr += num_bytes;
149 if (curr > size) size = curr;
150 return TRUE;
151}
152
153inline BOOL ByteStreamOutArray::isSeekable() const
154{

Callers

nothing calls this directly

Calls 1

realloc_lasFunction · 0.85

Tested by

no test coverage detected