Fill buf with size bytes with val starting from offset.
the offset in buffer
the value to set
the size to set
The amount of bytes filled. This value can be lower than size when buffer did not contain enough data.
See Implementation
Fill buf with size bytes with val starting from offset.