Skip to content

Instantly share code, notes, and snippets.

@bandrzejczak
Created February 9, 2018 22:09
Show Gist options
  • Save bandrzejczak/74b52059e7cb7c11953c24160700c3a8 to your computer and use it in GitHub Desktop.
Save bandrzejczak/74b52059e7cb7c11953c24160700c3a8 to your computer and use it in GitHub Desktop.
public long getPrice() {
return unsafe.getInt(objectOffset + priceOffset);
}
public void setPrice(final int price) {
unsafe.putInt(objectOffset + priceOffset, price);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment