SerialBuffer constructor
SerialBuffer(
- Uint8List? array
@param __namedParameters
array:nullif serializing, or binary data to deserializetextEncoder:TextEncoderinstance to use. Pass innullif running in a browsertextDecoder:TextDeciderinstance to use. Pass innullif 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 });
}