toBytes method

Uint8List toBytes()

Serializes the filter to a new buffer.

Implementation

Uint8List toBytes() {
  final out = Uint8List(byteLength);
  VxsLe.w32(out, 0, bitCount);
  out[4] = hashCount;
  out.setRange(5, out.length, bits);
  return out;
}