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