STRUCTS
Buffer resource
Defined in fuchsia.mem/buffer.fidl
A buffer for data whose size is not necessarily a multiple of the page size.
DEPRECATED: This type is superfluous and deprecated. Instead of using this type, use a zx.Handle:VMO object and store the size of the contents in the ZX_PROP_VMO_CONTENT_SIZE property.
Field | Type | Description | Default |
---|---|---|---|
vmo |
handle<vmo>
|
The vmo that contains the buffer. |
No default |
size |
uint64
|
The number of bytes in the buffer. The content of the buffer begin at the start of the VMO and continue
for This size must not be greater than the physical size of the VMO. |
No default |
Range resource
Defined in fuchsia.mem/range.fidl
A range of bytes within a VMO.
Field | Type | Description | Default |
---|---|---|---|
vmo |
handle<vmo>
|
The vmo that contains the bytes. |
No default |
offset |
uint64
|
The offset of the first byte within the range relative to the start of the VMO. For example, if |
No default |
size |
uint64
|
The number of bytes in the range. For example, if the offset is 3 and the size is 2, and the VMO starts with "abcdefg...", then the range contains "de". The sum of the offset and the size must not be greater than the physical size of the VMO. |
No default |
UNIONS
Data flexible resource
Defined in fuchsia.mem/buffer.fidl
Binary data that might be stored inline or in a VMO.
Useful for performance-sensitive protocols that sometimes receive small
amounts of binary data (i.e., which is more efficient to provide using
bytes
) but also need to support arbitrary amounts of data (i.e., which
need to be provided out-of-line in a Buffer
).
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
bytes |
vector<uint8>
|
The binary data provided inline in the message. |
2 |
buffer |
Buffer
|
The binary data provided out-of-line in a |