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

6
LINES

< > BotCompany Repo | #1019848 // clearStringBuffer_gen - also supports NotifyingStringBuffer

JavaX fragment (include)

svoid clearStringBuffer_gen(O buf) {
  if (buf != null) {
    call(buf, 'setLength, 0);
    call(buf, 'trimToSize);
  }
}

Author comment

Began life as a copy of #1016735

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019848
Snippet name: clearStringBuffer_gen - also supports NotifyingStringBuffer
Eternal ID of this version: #1019848/1
Text MD5: 81ee95148f81d5d4fc00e6552ca9fe7b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-28 21:15:25
Source code size: 126 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 378 / 396
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)