DC class

Mixed in types
Available Extensions

Constructors

DC(int length)
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(dynamic offset, dynamic 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
getBooleanArray(int offset, int length) List<bool>
getChar(int offset) String
getCharArray(int offset, int length) List<String>
getDateTime(int offset) DateTime
getDateTimeArray(int offset, int length) List<DateTime>
getFloat32(int offset) double
getFloat32Array(int offset, int length) Float32List
getFloat64(int offset) double
getFloat64Array(int offset, int length) Float64List
getGuid(int offset) Guid
getGuidArray(int offset, int length) List<Guid>
getHex(dynamic offset, dynamic length) String
getInt16(int offset) int
getInt16Array(int offset, int length) Int16List
getInt32(int offset) int
getInt32Array(int offset, int length) Int32List
getInt64(dynamic offset) int
getInt64Array(int offset, int length) Int64List
getInt8(int offset) int
getInt8Array(int offset, int length) Int8List
getString(dynamic offset, dynamic length) String
getStringArray(dynamic offset, dynamic length) List<String>
getUint16(int offset) int
getUint16Array(int offset, int length) Uint16List
getUint32(int offset) int
getUint32Array(int offset, int length) Uint32List
getUint64(dynamic offset) int
getUint64Array(int offset, int length) Uint64List
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 dc, int offset) → dynamic
setBoolean(int offset, bool value) → void
setChar(int offset, int value) → void
setDateTime(dynamic offset, DateTime value) → void
setFloat32(int offset, double value) → void
setFloat64(int offset, double value) → void
setGuid(int offset, Guid guid) → void
setInt16(int offset, int value) → void
setInt32(int offset, int value) → void
setInt64(dynamic offset, dynamic value) → void
setInt8(int offset, int value) → void
setUint16(int offset, int value) → void
setUint32(int offset, int value) → void
setUint64(dynamic offset, dynamic value) → 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
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

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