| 134 | } |
| 135 | |
| 136 | inline 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 | |
| 153 | inline BOOL ByteStreamOutArray::isSeekable() const |
| 154 | { |
nothing calls this directly
no test coverage detected