ZBytes.fromInt constructor

ZBytes.fromInt(
  1. int value
)

Creates ZBytes containing a serialized int64 value.

Implementation

factory ZBytes.fromInt(int value) {
  final ser = ZSerializer()..serializeInt64(value);
  return ser.finish();
}