question: get the data trimmed to the length of the actual payload read , caching the result . concode_field_sep byte[] consumedData concode_elem_sep int consumedLength concode_elem_sep String LOGTAG concode_field_sep ConsumedInputStream readFully concode_elem_sep void safeStreamClose concode_elem_sep byte[] truncateBytes concode_elem_sep byte[] getData
target: byte [ ] function ( ) { if ( consumedData . length == consumedLength ) { return consumedData ; } consumedData = truncateBytes ( consumedData , consumedLength ) ; return consumedData ; }