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.

1  
sS hexDump(byte[] bytes) {
2  
  ret mapToLines(chunk -> insertSpaceAt(32, bytesToHex_upper(chunk)),
3  
    byteArrayChunksIterator(bytes, 32));
4  
}
5  
6  
// Note: May be huge
7  
sS hexDump(File f) {
8  
  ret hexDump(loadBinaryFile(f));
9  
}

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: 181 / 262
Version history: 4 change(s)
Referenced in: [show references]