Libraryless. Click here for Pure Java version (5356L/30K).
1 | svoid test_ByteBuffer() { |
2 | new ByteBuffer buf; |
3 | buf.add((byte) 12); |
4 | buf.add((byte) 34); |
5 | assertEqualsVerbose((byte) 12, buf.popFirst()); |
6 | assertEqualsVerbose((byte) 34, buf.popFirst()); |
7 | assertFail(() -> buf.popFirst()); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033634 |
Snippet name: | test_ByteBuffer |
Eternal ID of this version: | #1033634/2 |
Text MD5: | c44a1ac579cc9e11a024316fd6d89c38 |
Transpilation MD5: | 118bad0d3efbeb05461efbdc3f51a38b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-12-22 14:59:04 |
Source code size: | 236 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 132 / 196 |
Version history: | 1 change(s) |
Referenced in: | [show references] |