ParameterPacket.fromBuffer constructor

ParameterPacket.fromBuffer(
  1. ReadBuffer buffer
)

Implementation

factory ParameterPacket.fromBuffer(ReadBuffer buffer) {
  int type = buffer.uint16;
  int flags = buffer.uint16;
  int decimals = buffer.byte;
  int length = buffer.uint32;

  return ParameterPacket(type: type, flags: flags, decimals: decimals, length: length);
}