RawData class

A simple SelfEncoder that holds bytes.

Inheritance

Constructors

RawData(List<int> bytes)
const
RawData.decode(RawReader reader, int length)
factory

Properties

bytes List<int>
final
hashCode int
Computes a hash code based on the serialized bytes.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encodeSelf(RawWriter writer) → void
Writes this object to the provided RawWriter.
override
encodeSelfCapacity() int
Returns an estimated maximum number of bytes required for encoding.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toImmutableByteData() ByteData
Serializes this object to an immutable ByteData.
inherited
toImmutableBytes() List<int>
Serializes this object to an immutable list of bytes.
inherited
toMutableByteData() ByteData
Serializes this object to a mutable ByteData buffer.
inherited
toMutableBytes() List<int>
Serializes this object to a mutable list of bytes.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
Compares this object with another SelfEncoder by serialized content.
inherited

Static Properties

empty RawData
final