- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 508 for bufLen (0.05 sec)
-
android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
h ^= fingerprint(buf, bufLen); h = remix(h); buf[bufLen++] = getChar(h); int x0 = buf[bufLen - 1] & 0xff; int x1 = buf[bufLen - 2] & 0xff; int x2 = buf[bufLen - 3] & 0xff; int x3 = buf[bufLen / 2] & 0xff; buf[((x0 << 16) + (x1 << 8) + x2) % bufLen] ^= x3; buf[((x1 << 16) + (x2 << 8) + x3) % bufLen] ^= i % 256; } assertEquals(0x7a1d67c50ec7e167L, h); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java
h ^= fingerprint(buf, bufLen); h = remix(h); buf[bufLen++] = getChar(h); int x0 = buf[bufLen - 1] & 0xff; int x1 = buf[bufLen - 2] & 0xff; int x2 = buf[bufLen - 3] & 0xff; int x3 = buf[bufLen / 2] & 0xff; buf[((x0 << 16) + (x1 << 8) + x2) % bufLen] ^= x3; buf[((x1 << 16) + (x2 << 8) + x3) % bufLen] ^= i % 256; } assertEquals(0xeaa3b1c985261632L, h); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.8K bytes - Viewed (0) -
cmd/dummy-data-generator_test.go
// errors cause a `false` result. A string describing the error is // also returned. func cmpReaders(r1, r2 io.Reader) (bool, string) { bufLen := 32 * 1024 b1, b2 := make([]byte, bufLen), make([]byte, bufLen) for i := 0; true; i++ { n1, e1 := io.ReadFull(r1, b1) n2, e2 := io.ReadFull(r2, b2) if n1 != n2 { return false, fmt.Sprintf("Read %d != %d bytes from the readers", n1, n2)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 4.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache2/FileOperatorTest.kt
val buffer = Buffer() operator.read(6, buffer, 21) operator.read(36, buffer, 1) operator.read(5, buffer, 5) operator.read(28, buffer, 8) operator.read(17, buffer, 10) operator.read(36, buffer, 2) operator.read(2, buffer, 4) operator.write(0, buffer, buffer.size) operator.read(0, buffer, 12) operator.read(47, buffer, 3) operator.read(45, buffer, 2) operator.read(47, buffer, 3)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java
// Test reading parameters from a properly formatted buffer byte[] buffer = new byte[20]; // Set up the buffer with test data // sid (2 bytes) buffer[0] = 0x01; buffer[1] = 0x00; // numEntries (2 bytes) buffer[2] = 0x05; buffer[3] = 0x00; // isEndOfSearch (2 bytes, bit 0 of first byte) buffer[4] = 0x01; // end of search = true buffer[5] = 0x00;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java
/** * Creates a security descriptor by decoding from a byte buffer. * * @param buffer the byte buffer containing the security descriptor data * @param bufferIndex the starting offset in the buffer * @param len the length of data to decode * @throws IOException if an I/O error occurs during decoding */ public SecurityDescriptor(final byte[] buffer, final int bufferIndex, final int len) throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferralResponse.java
bufferIndex += 2; pathOffset = readInt2(buffer, bufferIndex); bufferIndex += 2; altPathOffset = readInt2(buffer, bufferIndex); bufferIndex += 2; nodeOffset = readInt2(buffer, bufferIndex); bufferIndex += 2; path = readString(buffer, start + pathOffset, len, (flags2 & FLAGS2_UNICODE) != 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java
/** * Creates a security descriptor by decoding from a byte buffer. * * @param buffer the byte buffer containing the security descriptor data * @param bufferIndex the starting offset in the buffer * @param len the length of data to decode * @throws IOException if an I/O error occurs during decoding */ public SecurityDescriptor(final byte[] buffer, final int bufferIndex, final int len) throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java
* * @param buffer memory buffer to register * @param access access permissions */ public RdmaMemoryRegion(ByteBuffer buffer, EnumSet<RdmaAccess> access) { this.buffer = buffer; this.accessFlags = access; this.localKey = generateLocalKey(); this.remoteKey = generateRemoteKey(); this.address = getBufferAddress(buffer); this.valid = true; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
setPrivateField(cmd, "maxReferralLevel", 0x12AB); byte[] buffer = new byte[100]; int len = cmd.writeParametersWireFormat(buffer, 0); assertTrue(len >= 2); // writeInt2 writes in little-endian format (LSB first) assertEquals(0xAB, buffer[0] & 0xFF); assertEquals(0x12, buffer[1] & 0xFF); // Check that the path is written after the referral level
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0)