encodeUint64List method

Uint8List encodeUint64List()

Encodes this List to a Uint8List of Uint64.

Implementation

Uint8List encodeUint64List() {
  final p = _platform;

  final length = this.length;
  final bs = Uint8List(length * 8);

  var byteDataOffset = 0;

  for (var i = 0; i < length; ++i) {
    var n = this[i];

    p.writeUint64(bs, n, byteDataOffset);

    byteDataOffset += 8;
  }

  return bs;
}