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

9
LINES

< > BotCompany Repo | #1034331 // hexDump

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

Transpiled version (10004L) is out of date.

sS hexDump(byte[] bytes) {
  ret mapToLines(chunk -> insertSpaceAt(32, bytesToHex_upper(chunk)),
    byteArrayChunksIterator(bytes, 32));
}

// Note: May be huge
sS hexDump(File f) {
  ret hexDump(loadBinaryFile(f));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1034331
Snippet name: hexDump
Eternal ID of this version: #1034331/5
Text MD5: 1e78bafd89796082724deb437366454c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-27 03:08:12
Source code size: 226 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 86 / 162
Version history: 4 change(s)
Referenced in: [show references]