Transpiled version (5530L) is out of date.
1 | svoid test_PersistentManagedObjects_v1() { |
2 | PersistentManagedObjects_v1<ManagedString> pm = new((_mem, addr) -> ManagedString.load(_mem, addr)); |
3 | ManagedString s = pm.getUserData(); |
4 | assertNullVerbose("userData", s); |
5 | pm.setUserData(ManagedString.create(pm.mem, "Hello world")); |
6 | s = pm.getUserData(); |
7 | assertEqualsVerbose("Hello world", str(s)); |
8 | print("Mem size: " + pm.mem.size()); |
9 | pm.flush(); |
10 | |
11 | ManagedIntObjects_v1 mem = new(pm.mem.mem); |
12 | pm = new PersistentManagedObjects_v1<ManagedString>(mem, pm.makeUserObject); |
13 | s = pm.getUserData(); |
14 | assertEqualsVerbose("Hello world", str(s)); |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031653 |
Snippet name: | test_PersistentManagedObjects_v1 |
Eternal ID of this version: | #1031653/11 |
Text MD5: | e34ee525a6b7ab4d9af3dfbb9434ea66 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-25 09:46:49 |
Source code size: | 619 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 174 / 292 |
Version history: | 10 change(s) |
Referenced in: | [show references] |