description

# UnmodifiableByteDataView class Null safety

A read-only view of a ByteData.

Implemented types
  - ByteData

## Constructors

UnmodifiableByteDataView(ByteData data)

## Properties

buffer → ByteBuffer
  Returns the byte buffer associated with this object.
  read-only, override
elementSizeInBytes → int
  Returns the number of bytes in the representation of each element in this list.
  read-only, override
hashCode → int
  The hash code for this object. [...]
  read-only, inherited
lengthInBytes → int
  Returns the length of this view, in bytes.
  read-only, override
offsetInBytes → int
  Returns the offset in bytes into the underlying byte buffer of this view.
  read-only, override
runtimeType → Type
  A representation of the runtime type of the object.
  read-only, inherited

## Methods

getFloat32(int byteOffset, [Endian endian = Endian.big]) → double
  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). [...]
  override
getFloat64(int byteOffset, [Endian endian = Endian.big]) → double
  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). [...]
  override
getInt8(int byteOffset) → int
  Returns the (possibly negative) integer represented by the byte at the specified `byteOffset` in this object, in two's complement binary representation. [...]
  override
getInt16(int byteOffset, [Endian endian = Endian.big]) → int
  Returns the (possibly negative) integer represented by the two bytes at the specified `byteOffset` in this object, in two's complement binary form. [...]
  override
getInt32(int byteOffset, [Endian endian = Endian.big]) → int
  Returns the (possibly negative) integer represented by the four bytes at the specified `byteOffset` in this object, in two's complement binary form. [...]
  override
getInt64(int byteOffset, [Endian endian = Endian.big]) → int
  Returns the (possibly negative) integer represented by the eight bytes at the specified `byteOffset` in this object, in two's complement binary form. [...]
  override
getUint8(int byteOffset) → int
  Returns the positive integer represented by the byte at the specified `byteOffset` in this object, in unsigned binary form. [...]
  override
getUint16(int byteOffset, [Endian endian = Endian.big]) → int
  Returns the positive integer represented by the two bytes starting at the specified `byteOffset` in this object, in unsigned binary form. [...]
  override
getUint32(int byteOffset, [Endian endian = Endian.big]) → int
  Returns the positive integer represented by the four bytes starting at the specified `byteOffset` in this object, in unsigned binary form. [...]
  override
getUint64(int byteOffset, [Endian endian = Endian.big]) → int
  Returns the positive integer represented by the eight bytes starting at the specified `byteOffset` in this object, in unsigned binary form. [...]
  override
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a non-existent method or property is accessed. [...]
  inherited
setFloat32(int byteOffset, double value, [Endian endian = Endian.big]) → void
  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`. [...]
  override
setFloat64(int byteOffset, double value, [Endian endian = Endian.big]) → void
  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`. [...]
  override
setInt8(int byteOffset, int value) → void
  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. [...]
  override
setInt16(int byteOffset, int value, [Endian endian = Endian.big]) → void
  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. [...]
  override
setInt32(int byteOffset, int value, [Endian endian = Endian.big]) → void
  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. [...]
  override
setInt64(int byteOffset, int value, [Endian endian = Endian.big]) → void
  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. [...]
  override
setUint8(int byteOffset, int value) → void
  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. [...]
  override
setUint16(int byteOffset, int value, [Endian endian = Endian.big]) → void
  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. [...]
  override
setUint32(int byteOffset, int value, [Endian endian = Endian.big]) → void
  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. [...]
  override
setUint64(int byteOffset, int value, [Endian endian = Endian.big]) → void
  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. [...]
  override
toString() → String
  Returns a string representation of this object.
  inherited

## Operators

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