when buffer did not contain enough data.
Buffer.memset
size_t memset(size_t offset, ubyte val, size_t size)Fills buf with size bytes with val starting from offset.
Parameters
offset | the offset in buffer |
val | the value to set |
size | the size to set |
Returns
The amount of bytes filled. This value can be lower than size