Skip to main content

API

TransportPayloadโ€‹

Declaration
class TransportPayload {
Uint8List get bytes
void release()
Uint8List takeBytes({bool release = true})
List<int> toBytes({bool release = true})
}

Propertiesโ€‹

bytesโ€‹

The memory-mapped buffer of the data.

Methodsโ€‹

releaseโ€‹

Frees the buffer and returns it to the pool.

takeBytesโ€‹

Takes Uint8List from the bytes and releases the buffer.

toBytesโ€‹

Takes List<int> from the bytes and releases the buffer.