buf.unref();
}
public BitmapRectangle readRectangle(ByteBuffer buf) {
BitmapRectangle rectangle = new BitmapRectangle();
// (2 bytes): A 16-bit, unsigned integer. Left bound of the rectangle.
rectangle.x = buf.readSignedShortLE();
// (2 bytes): A 16-bit, unsigned integer. Top bound of the rectangle.