Libraryless. Click here for Pure Java version (9816L/55K).
sclass LoggingBitHead > BitHead { class Event { long byteCounter = LoggingBitHead.this.byteCounter; int align = LoggingBitHead.this.align; int currentByte = LoggingBitHead.this.currentByte; } record WritingBit(bool b) > Event {} record WritingByte(int i) > Event {} event log(Event event); bool writeArraysSlowly() { true; } void writeBit(bool b) { log(new WritingBit(b)); super.writeBit(b); } void writeByte(int i) { log(new WritingByte(i)); super.writeByte(i); } }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035678 |
Snippet name: | LoggingBitHead |
Eternal ID of this version: | #1035678/3 |
Text MD5: | 9b269a4654900bd2d67cfe29fa4cfd6b |
Transpilation MD5: | d694a68d29477f78b490fb1738f82683 |
Author: | stefan |
Category: | javax / huffman encoding |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-06 19:39:03 |
Source code size: | 552 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 121 / 192 |
Version history: | 2 change(s) |
Referenced in: | [show references] |