Libraryless. Click here for Pure Java version (2868L/17K).
srecord DoubleVAddr (VAddr addr1, VAddr addr2) implements VAddr { replace Addr with int. replace BoxedAddr with Int. public int get() { ret addr1!; } public int get(Addr ofs) { ret addr1.get(ofs); } public void set(int val) { addr1.set(val); addr2.set(val); } public void set(Addr ofs, int val) { addr1.set(ofs, val); addr2.set(ofs, val); } public VAddr plus(Addr ofs) { ret DoubleVAddr(addr1.plus(ofs), addr2.plus(ofs)); } }
Began life as a copy of #1031714
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031717 |
Snippet name: | DoubleVAddr - two addresses at once (while moving object in garbage collector) |
Eternal ID of this version: | #1031717/8 |
Text MD5: | 9946a675a2dacd520324f95f648f85b5 |
Transpilation MD5: | 0abf145fb2b7ce9dee9e16e8ebf31818 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-28 21:03:33 |
Source code size: | 455 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 156 / 237 |
Version history: | 7 change(s) |
Referenced in: | -