lower static method

RustBuffer lower(
  1. ObservedMessage value
)

Implementation

static RustBuffer lower(ObservedMessage value) {
  final total_length =
      FfiConverterString.allocationSize(value.topic) +
      FfiConverterUint8List.allocationSize(value.payload) +
      FfiConverterQoS.allocationSize(value.qos) +
      FfiConverterBool.allocationSize(value.retain) +
      0;
  final buf = Uint8List(total_length);
  write(value, buf);
  return toRustBuffer(buf);
}