UnmodifiableByteDataView class

A read-only view of a ByteData.

Implemented types

Constructors

UnmodifiableByteDataView(ByteData data)

Properties

bufferByteBuffer
read-only, override
Returns the byte buffer associated with this object.
elementSizeInBytesint
read-only, override
Returns the number of bytes in the representation of each element in this list.
hashCodeint
read-only, inherited
The hash code for this object. [...]
lengthInBytesint
read-only, override
Returns the length of this view, in bytes.
offsetInBytesint
read-only, override
Returns the offset in bytes into the underlying byte buffer of this view.
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

getFloat32(int byteOffset, [Endian endian = Endian.big]) → double
override
Returns the floating point number represented by the four bytes at the specified byteOffset in this object, in IEEE 754 single-precision binary floating-point format (binary32). [...]
getFloat64(int byteOffset, [Endian endian = Endian.big]) → double
override
Returns the floating point number represented by the eight bytes at the specified byteOffset in this object, in IEEE 754 double-precision binary floating-point format (binary64). [...]
getInt8(int byteOffset) → int
override
Returns the (possibly negative) integer represented by the byte at the specified byteOffset in this object, in two's complement binary representation. [...]
getInt16(int byteOffset, [Endian endian = Endian.big]) → int
override
Returns the (possibly negative) integer represented by the two bytes at the specified byteOffset in this object, in two's complement binary form. [...]
getInt32(int byteOffset, [Endian endian = Endian.big]) → int
override
Returns the (possibly negative) integer represented by the four bytes at the specified byteOffset in this object, in two's complement binary form. [...]
getInt64(int byteOffset, [Endian endian = Endian.big]) → int
override
Returns the (possibly negative) integer represented by the eight bytes at the specified byteOffset in this object, in two's complement binary form. [...]
getUint8(int byteOffset) → int
override
Returns the positive integer represented by the byte at the specified byteOffset in this object, in unsigned binary form. [...]
getUint16(int byteOffset, [Endian endian = Endian.big]) → int
override
Returns the positive integer represented by the two bytes starting at the specified byteOffset in this object, in unsigned binary form. [...]
getUint32(int byteOffset, [Endian endian = Endian.big]) → int
override
Returns the positive integer represented by the four bytes starting at the specified byteOffset in this object, in unsigned binary form. [...]
getUint64(int byteOffset, [Endian endian = Endian.big]) → int
override
Returns the positive integer represented by the eight bytes starting at the specified byteOffset in this object, in unsigned binary form. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
setFloat32(int byteOffset, double value, [Endian endian = Endian.big]) → void
override
Sets the four bytes starting at the specified byteOffset in this object to the IEEE 754 single-precision binary floating-point (binary32) representation of the specified value. [...]
setFloat64(int byteOffset, double value, [Endian endian = Endian.big]) → void
override
Sets the eight bytes starting at the specified byteOffset in this object to the IEEE 754 double-precision binary floating-point (binary64) representation of the specified value. [...]
setInt8(int byteOffset, int value) → void
override
Sets the byte at the specified byteOffset in this object to the two's complement binary representation of the specified value, which must fit in a single byte. [...]
setInt16(int byteOffset, int value, [Endian endian = Endian.big]) → void
override
Sets the two bytes starting at the specified byteOffset in this object to the two's complement binary representation of the specified value, which must fit in two bytes. [...]
setInt32(int byteOffset, int value, [Endian endian = Endian.big]) → void
override
Sets the four bytes starting at the specified byteOffset in this object to the two's complement binary representation of the specified value, which must fit in four bytes. [...]
setInt64(int byteOffset, int value, [Endian endian = Endian.big]) → void
override
Sets the eight bytes starting at the specified byteOffset in this object to the two's complement binary representation of the specified value, which must fit in eight bytes. [...]
setUint8(int byteOffset, int value) → void
override
Sets the byte at the specified byteOffset in this object to the unsigned binary representation of the specified value, which must fit in a single byte. [...]
setUint16(int byteOffset, int value, [Endian endian = Endian.big]) → void
override
Sets the two bytes starting at the specified byteOffset in this object to the unsigned binary representation of the specified value, which must fit in two bytes. [...]
setUint32(int byteOffset, int value, [Endian endian = Endian.big]) → void
override
Sets the four bytes starting at the specified byteOffset in this object to the unsigned binary representation of the specified value, which must fit in four bytes. [...]
setUint64(int byteOffset, int value, [Endian endian = Endian.big]) → void
override
Sets the eight bytes starting at the specified byteOffset in this object to the unsigned binary representation of the specified value, which must fit in eight bytes. [...]
toString() → String
inherited
A string representation of this object. [...]

Operators

operator ==(Object other) → bool
inherited
The equality operator. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-typed_data/UnmodifiableByteDataView-class.html