W3cubDocs

/Dart 2

ByteConversionSink class

The ByteConversionSink provides an interface for converters to efficiently transmit byte data.

Instead of limiting the interface to one non-chunked list of bytes it accepts its input in chunks (themselves being lists of bytes).

This abstract class will likely get more methods over time. Implementers are urged to extend or mix in ByteConversionSinkBase to ensure that their class covers the newly added methods.

Inheritance
Implementers

Constructors

ByteConversionSink()
ByteConversionSink.from(Sink<List<int>> sink)
factory
ByteConversionSink.withCallback(void callback(List<int> accumulated))
factory

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

addSlice(List<int> chunk, int start, int end, bool isLast) → void
Adds the next chunk to this. [...]
add(List<int> chunk) → void
inherited
Adds chunked data to this sink. [...]
close() → void
inherited
Closes the sink. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic 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.5.0/dart-convert/ByteConversionSink-class.html