Searched refs:byteCount (Results 1 – 2 of 2) sorted by relevance
87 private static ByteBuffer toByteBuffer(int byteCount, Buffer input) { in toByteBuffer() argument89 boolean convertWholeBuffer = (byteCount < 0); in toByteBuffer()94 byteCount = input2.limit() - position; in toByteBuffer()96 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer()97 for (int i = 0; i < byteCount; i++) { in toByteBuffer()105 byteCount = (input2.limit() - position) * 2; in toByteBuffer()107 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer()109 for (int i = 0; i < byteCount / 2; i++) { in toByteBuffer()117 byteCount = (input2.limit() - position)* 2; in toByteBuffer()119 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer()[all …]
85 public static Fingerprint fromInputStream(InputStream stream, long[] byteCount) in fromInputStream() argument101 if ((byteCount != null) && (byteCount.length > 0)) byteCount[0] = count; in fromInputStream()