DC class

Mixed in types
Available Extensions

Constructors

DC(int length)
DC.fromHex(String hex, [String separator = ' '])
DC.fromList(List<int> list)
DC.fromUint8Array(Uint8List array)

Properties

first int
The first element.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether this collection has no elements.
no setterinherited
isNotEmpty bool
Whether this collection has at least one element.
no setterinherited
iterator Iterator<int>
A new Iterator that allows iterating the elements of this Iterable.
no setteroverride
last int
The last element.
no setterinherited
length int
The number of elements in this.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
single int
Checks that this iterable has only one element, and returns that element.
no setterinherited

Methods

any(bool test(int element)) bool
Checks whether any element of this iterable satisfies test.
inherited
append(DC src, int offset, int length) DC
cast<R>() Iterable<R>
A view of this iterable as an iterable of R instances.
inherited
clip(int offset, int length) DC
contains(Object? element) bool
Whether the collection contains an element equal to element.
inherited
elementAt(int index) int
Returns the indexth element.
inherited
every(bool test(int element)) bool
Checks whether every element of this iterable satisfies test.
inherited
expand<T>(Iterable<T> toElements(int element)) Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
firstWhere(bool test(int element), {int orElse()?}) int
The first element that satisfies the given predicate test.
inherited
fold<T>(T initialValue, T combine(T previousValue, int element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
inherited
followedBy(Iterable<int> other) Iterable<int>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void action(int element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
getBoolean(int offset) bool
getChar(int offset) String
getDateTime(int offset, [Endian endian = Endian.little]) DateTime
getFloat32(int offset, [Endian endian = Endian.little]) double
getFloat32Array(int offset, int length) Float32List
getFloat64(int offset, [Endian endian = Endian.little]) double
getFloat64Array(int offset, int length) Float64List
getGuid(int offset) Guid
getHex(int offset, int length) String
getInt16(int offset, [Endian endian = Endian.little]) int
getInt16Array(int offset, int length) Int16List
getInt32(int offset, [Endian endian = Endian.little]) int
getInt32Array(int offset, int length) Int32List
getInt64(int offset, [Endian endian = Endian.little]) int
getInt64Array(int offset, int length) → dynamic
getInt8(int offset) int
getInt8Array(int offset, int length) Int8List
getString(int offset, int length) String
getStringArray(int offset, int length) List<String>
getUint16(int offset, [Endian endian = Endian.little]) int
getUint16Array(int offset, int length) Uint16List
getUint32(int offset, [Endian endian = Endian.little]) int
getUint32Array(int offset, int length) Uint32List
getUint64(int offset, [Endian endian = Endian.little]) int
getUint64Array(int offset, int length) → dynamic
getUint8(int offset) int
getUint8Array(int offset, int length) Uint8List
join([String separator = ""]) String
Converts each element to a String and concatenates the strings.
inherited
lastWhere(bool test(int element), {int orElse()?}) int
The last element that satisfies the given predicate test.
inherited
map<T>(T toElement(int e)) Iterable<T>
The current elements of this iterable modified by toElement.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reduce(int combine(int value, int element)) int
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
sequenceEqual(dynamic ar) bool
set(DC src, int srcOffset, int dstOffset, int length) → void
setBoolean(int offset, bool value) → void
setChar(int offset, int value) → void
setDateTime(int offset, DateTime value, [Endian endian = Endian.little]) → void
setFloat32(int offset, double value, [Endian endian = Endian.little]) → void
setFloat64(int offset, double value, [Endian endian = Endian.little]) → void
setGuid(int offset, Guid guid) → void
setInt16(int offset, int value, [Endian endian = Endian.little]) → void
setInt32(int offset, int value, [Endian endian = Endian.little]) → void
setInt64(int offset, int value, [Endian endian = Endian.little]) → void
setInt8(int offset, int value) → void
setUint16(int offset, int value, [Endian endian = Endian.little]) → void
setUint32(int offset, int value, [Endian endian = Endian.little]) → void
setUint64(int offset, int value, [Endian endian = Endian.little]) → void
setUint8(int offset, int value) → void
singleWhere(bool test(int element), {int orElse()?}) int
The single element that satisfies test.
inherited
skip(int count) Iterable<int>
Creates an Iterable that provides all but the first count elements.
inherited
skipWhile(bool test(int value)) Iterable<int>
Creates an Iterable that skips leading elements while test is satisfied.
inherited
take(int count) Iterable<int>
Creates a lazy iterable of the count first elements of this iterable.
inherited
takeWhile(bool test(int value)) Iterable<int>
Creates a lazy iterable of the leading elements satisfying test.
inherited
toArray() Uint8List
toHex([String separator = " ", int? offset, int? length]) String
toList({bool growable = true}) List<int>
Creates a List containing the elements of this Iterable.
inherited
toSet() Set<int>
Creates a Set containing the same elements as this iterable.
inherited
toString() String
Returns a string representation of (some of) the elements of this.
inherited
where(bool test(int element)) Iterable<int>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereType<T>() Iterable<T>
Creates a new lazy Iterable with all elements that have type T.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) int
operator []=(int index, int value) → void

Static Methods

boolToBytes(bool value) DC
charToBytes(int value) DC
combine(dynamic a, int aOffset, int aLength, dynamic b, int bOffset, int bLength) DC
dateTimeArrayToBytes(List<DateTime> value, [Endian endian = Endian.little]) DC
dateTimeToBytes(DateTime value, [Endian endian = Endian.little]) DC
float32ArrayToBytes(Float32List value) DC
float32ToBytes(double value, [Endian endian = Endian.little]) DC
float64ArrayToBytes(Float64List value) DC
float64ToBytes(double value, [Endian endian = Endian.little]) DC
guidToBytes(Guid value) DC
hexToBytes(String value) DC
int16ArrayToBytes(Int16List value) DC
int16ToBytes(int value, [Endian endian = Endian.little]) DC
int32ArrayToBytes(Int32List value) DC
int32ToBytes(int value, [Endian endian = Endian.little]) DC
int64ArrayToBytes(Int64List value) DC
int64ToBytes(int value, [Endian endian = Endian.little]) DC
int8ArrayToBytes(Int8List value) DC
int8ToBytes(int value) DC
stringArrayToBytes(List<String> value) DC
stringToBytes(String value) DC
uint16ArrayToBytes(Uint16List value) DC
uint16ToBytes(int value, [Endian endian = Endian.little]) DC
uint32ArrayToBytes(Uint32List value) DC
uint32ToBytes(int value, [Endian endian = Endian.little]) DC
uint64ArrayToBytes(Uint64List value) DC
uint64ToBytes(int value, [Endian endian = Endian.little]) DC
uint8ArrayToBytes(Uint8List value) DC
uint8ToBytes(int value) DC