Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1033634 // test_ByteBuffer

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5356L/30K).

svoid test_ByteBuffer() {
  new ByteBuffer buf;
  buf.add((byte) 12);
  buf.add((byte) 34);
  assertEqualsVerbose((byte) 12, buf.popFirst());
  assertEqualsVerbose((byte) 34, buf.popFirst());
  assertFail(() -> buf.popFirst());
}

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: 131 / 195
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)