deserialize static method
Deserializes a ByteBuffer to a PackedPoint struct.
buffer
: The buffer containing the serialized data.
Implementation
static PackedPoint deserialize(ByteBuffer buffer) {
final point = PackedPoint.create();
final data = ByteData.view(buffer);
point.x = data.getInt32(0, Endian.host);
point.y = data.getInt32(4, Endian.host);
return point;
}