ByteArray([int length = 0, this.endian = Endian.little]) { final buff = Uint8Buffer(length); _byteData = ByteData.view(buff.buffer); }