pubdev/dartssh/serializable library
Classes
- QueueBuffer
- A Uint8List deque for consuming binary protocol.
- Serializable
- SerializableBuffer
- Base class for advancing offset view of Uint8List data.
- SerializableInput
- Consumes SerializableBuffer to deserialized input.
- SerializableOutput
- Fills SerializableBuffer with serialized output.
Functions
-
appendUint8List(
Uint8List x, Uint8List y) → Uint8List -
Returns concatenation of
x
andy
. -
equalUint8List(
Uint8List x, Uint8List y) → bool -
Returns true if
x
andy
are equivalent. -
nextMultipleOfN(
int input, int n) → int -
Rounds
input
up to the nearestn
th. -
searchUint8List(
Uint8List haystack, Uint8List needle) → int -
Returns the position of the first match of
needle
inhaystack
or -1. -
viewUint8List(
Uint8List x, [int offset = 0, int length]) → Uint8List -
Returns view of
x
, accounting for whenx
is another view.