Gst.ByteArrayInterface¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
data |
r/w |
A pointer to an array of bytes. |
|
len |
r/w |
Number of bytes in data. |
|
resize |
r |
Reallocate data. |
Methods¶
None
Details¶
- class Gst.ByteArrayInterface¶
Interface for an array of bytes. It is expected to be subclassed to implement resize virtual method using language native array implementation, such as GLib’s
GLib.ByteArray, C++’sstd::vector<uint8_t>or Rust’sVec<u8>.resize implementation could allocate more than requested to avoid repeated reallocations. It can return
False, or be set toNone, in the case the array cannot grow.New in version 1.24.