Interface IMutableByteBuffer
interface IMutableByteBuffer
Extends IByteBuffer
A byte buffer with contents that can change.
Methods
write()
Write into the byte buffer. It is a contract violation to write beyond the end of the byte buffer.voidwrite(i32offset,u8[]bytes)
Parameters
offset
i32 — Required
offset into the buffer to which to write
bytes
u8[] — Required
to write
mapForWriteOnly()
Make a write-only mapping for this buffer. The initial content of a write-only mapping is unspecified. Using write-only mappings instead of read-write ones can avoid certain GPU cache synchronization operations.IMutableByteBufferMapping*mapForWriteOnly()
Returns
IMutableByteBufferMapping*
mapping object
mapForReadWrite()
Make a read-write mapping for this bufferIMutableByteBufferMapping*mapForReadWrite()
Returns
IMutableByteBufferMapping*
mapping object

