Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IMutableByteBuffer

interface IMutableByteBuffer
Extends IByteBuffer A byte buffer with contents that can change.

Methods

write()

void write(i32 offset, u8[] bytes)
Write into the byte buffer. It is a contract violation to write beyond the end of the byte buffer.

Parameters

offset
i32 — Required offset into the buffer to which to write
bytes
u8[] — Required to write

mapForWriteOnly()

IMutableByteBufferMapping* 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.

Returns

IMutableByteBufferMapping* mapping object

mapForReadWrite()

IMutableByteBufferMapping* mapForReadWrite()
Make a read-write mapping for this buffer

Returns

IMutableByteBufferMapping* mapping object
Last modified on October 29, 2026