SerialBuffer constructor
SerialBuffer(
- Uint8List? array
@param __namedParameters
array
:null
if serializing, or binary data to deserializetextEncoder
:TextEncoder
instance to use. Pass innull
if running in a browsertextDecoder
:TextDecider
instance to use. Pass innull
if running in a browser
Implementation
SerialBuffer(this.array) {
// array = array || new Uint8List(1024);
length = array != null ? array!.length : 0;
// textEncoder = textEncoder || new TextEncoder();
// textDecoder = textDecoder || new TextDecoder('utf-8', { fatal: true });
}