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

3
LINES

< > BotCompany Repo | #1024227 // byteArrayOutputStreamBufferSize (hacky, but shouldn't fail, even if implementation might be changed in the future)

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

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

static int byteArrayOutputStreamBufferSize(ByteArrayOutputStream baos) {
  ret baos == null ? 0 : l(optCast(byte[].class, getOpt(baos, 'buf)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024227
Snippet name: byteArrayOutputStreamBufferSize (hacky, but shouldn't fail, even if implementation might be changed in the future)
Eternal ID of this version: #1024227/3
Text MD5: 71725987e3e3f8e305645e20bb9715d7
Transpilation MD5: f8ffee44f71e800d0f9d14308285edd5
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-28 13:32:07
Source code size: 147 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 123 / 192
Version history: 2 change(s)
Referenced in: [show references]