NativeOwnedBuffer class final
Frozen bytes with an independently retainable native allocation owner.
- Implemented types
- Available extensions
Properties
- bytes → Uint8List
-
Each exported view owns a native reference independently of this wrapper.
The list, its ByteBuffer and derived views are read-only.
no setter
- growthCopiedBytes → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputCopiedBytes → int
-
Raw byte-vector input copied during construction, separately from growth.
Scalar/string serialization writes are newly encoded data, not frame copies.
final
- isDisposed → bool
-
no setter
- length → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asFlatBuffersPptPayload(
) → LazyMessagePayload -
Available on NativeOwnedBuffer, provided by the NativeOwnedBufferFlatBuffersPpt extension
Makes this already encoded FlatBuffer usable as a typed WAMP PPT payload. -
asPptPayload(
{required LazyPayloadEncoding encoding, required PackedPayloadDecoder packedPayloadDecoder}) → LazyMessagePayload -
Available on NativeOwnedBuffer, provided by the NativeOwnedBufferPpt extension
Retains already encoded PPT bytes and their native owner without decoding. Use matching PPT options with Session's lazy call/publish APIs. The decoder runs only on application access; it must interpret this encoding/schema. -
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ownsPptPayloadBytes(
Uint8List bytes) → bool - Whether this exact packed PPT view was exported by this live wrapper. Copied/replaced lists and independently derived views are not eligible for retaining this handle during native payload submission.
-
retain(
) → NativeOwnedBuffer -
slice(
int offset, [int? end]) → NativeOwnedBuffer -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited