encode method

  1. @override
ByteBuffer encode(
  1. int data
)
override

Implementation

@override
ByteBuffer encode(int data) {
  final bytes = ByteData(8);
  bytes.setInt64(0, data, Endian.big);
  return bytes.buffer;
}