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

6
LINES

< > BotCompany Repo | #1016735 // clearStringBuffer - also releases memory

JavaX fragment (include)

svoid clearStringBuffer(StringBuffer buf) {
  if (buf != null) {
    buf.setLength(0);
    buf.trimToSize();
  }
}

Author comment

Began life as a copy of #1016650

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016735
Snippet name: clearStringBuffer - also releases memory
Eternal ID of this version: #1016735/4
Text MD5: 43f5dec00a153ee5fa997920081d1337
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-30 15:56:38
Source code size: 119 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 320 / 365
Version history: 3 change(s)
Referenced in: [show references]