svoid clearStringBuffer(StringBuffer buf) { if (buf != null) { buf.setLength(0); buf.trimToSize(); } }
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: | 401 / 447 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1019848 - clearStringBuffer_gen - also supports NotifyingStringBuffer #1029048 - getAndClearStringBuffer - atomic. also releases memory |