void function ( ) { if ( 0 >= userBufLen ) { return ; } finished = false ; uncompressedDirectBufLen = Math . min ( userBufLen , directBufferSize ) ; ( ( ByteBuffer ) uncompressedDirectBuf ) . put ( userBuf , userBufOff , uncompressedDirectBufLen ) ; userBufOff += uncompressedDirectBufLen ; userBufLen -= uncompressedDirectBufLen ; }
if a write would exceed the capacity of the direct buffers , it is set aside to be loaded by this function while the compressed data are consumed . concode_field_sep int userBufOff concode_elem_sep boolean finished concode_elem_sep boolean nativeSnappyLoaded concode_elem_sep Buffer uncompressedDirectBuf concode_elem_sep int userBufLen concode_elem_sep Log LOG concode_elem_sep int uncompressedDirectBufLen concode_elem_sep byte[] userBuf concode_elem_sep long bytesWritten concode_elem_sep int directBufferSize concode_elem_sep boolean finish concode_elem_sep long bytesRead concode_elem_sep Buffer compressedDirectBuf concode_elem_sep int DEFAULT_DIRECT_BUFFER_SIZE concode_field_sep boolean needsInput concode_elem_sep int compress concode_elem_sep void initIDs concode_elem_sep boolean finished concode_elem_sep void reinit concode_elem_sep String getLibraryName concode_elem_sep boolean isNativeCodeLoaded concode_elem_sep void setInput concode_elem_sep void setDictionary concode_elem_sep int compressBytesDirect concode_elem_sep void reset concode_elem_sep void finish concode_elem_sep void end concode_elem_sep long getBytesWritten concode_elem_sep long getBytesRead