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

9
LINES

< > BotCompany Repo | #1016424 - print_append (helper for print function)

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

Libraryless. Click here for Pure Java version (1629L/11K).

static void print_append(Appendable buf, S s, int max) ctex {
  synchronized(buf) {
    buf.append(s);
    if (buf cast StringBuffer)
      rotateStringBuffer(buf, max);
    else if (buf cast StringBuilder)
      rotateStringBuilder(buf, max);
  }
}

Author comment

Began life as a copy of #1000658

download  show line numbers  debug dex   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1016424
Snippet name: print_append (helper for print function)
Eternal ID of this version: #1016424/12
Text MD5: 0a3769aa3a5ed991a7b67970878751eb
Transpilation MD5: d04b25af74148f2837e9c224f4690f2c
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-30 23:39:04
Source code size: 257 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 176 / 215
Version history: 11 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1016424 & http://1016424.tinybrain.de