- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 954 for buffer2 (0.04 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
void testMultipleReadsUpdateOffset() { byte[] buffer1 = new byte[] { 0x10, 0x00, 0x00, 0x00 }; // 16 byte[] buffer2 = new byte[] { 0x20, 0x00, 0x00, 0x00 }; // 32 response.readParameterWordsWireFormat(buffer1, 0); assertEquals(16L, response.getOffset(), "First read should set offset to 16"); response.readParameterWordsWireFormat(buffer2, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
cmd/server_test.go
c.Assert(err, nil) c.Assert(response.StatusCode, http.StatusOK) var buffer bytes.Buffer // data to be written into buffer. data := "1234567890" // seed the random number generator once. rand.Seed(3) // generate a random number between 13 and 200. randInt := getRandomRange(13, 200, -1) // write into buffer till length of the buffer is greater than the generated random number. for i := 0; i <= randInt; i += 10 {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 118.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
// For GCM, last 4 bytes should contain incrementing counter ByteBuffer buffer1 = ByteBuffer.wrap(nonce1, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN); ByteBuffer buffer2 = ByteBuffer.wrap(nonce2, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN); int counter1 = buffer1.getInt(); int counter2 = buffer2.getInt(); assertEquals(counter1 + 1, counter2, "Counter should increment between nonces");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
@Test @DisplayName("Should not modify buffer during write") void testWriteDoesNotModifyBuffer() { byte[] buffer = new byte[64]; Arrays.fill(buffer, (byte) 0xAA); byte[] originalBuffer = buffer.clone(); notification.writeBytesWireFormat(buffer, 0); assertArrayEquals(originalBuffer, buffer); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
SMBUtil.writeInt2(8, buffer, 58); // Security buffer length // Add some dummy security data at offset 64 from start buffer[64] = (byte) 0x4E; // NTLMSSP signature start buffer[65] = (byte) 0x54; buffer[66] = (byte) 0x4C; buffer[67] = (byte) 0x4D; buffer[68] = (byte) 0x53; buffer[69] = (byte) 0x53;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/bytes/buffer.go
// The slice aliases the buffer content at least until the next buffer modification, // so immediate changes to the slice will affect the result of future reads. func (b *Buffer) Bytes() []byte { return b.buf[b.off:] } // AvailableBuffer returns an empty buffer with b.Available() capacity. // This buffer is intended to be appended to and
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 19 17:38:56 UTC 2025 - 16K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/rpc.java
final int _bufferl = length / 2; final int _buffers = maximum_length / 2; _dst.enc_ndr_long(_buffers); _dst.enc_ndr_long(0); _dst.enc_ndr_long(_bufferl); final int _bufferi = _dst.index; _dst.advance(2 * _bufferl); _dst = _dst.derive(_bufferi); for (int _i = 0; _i < _bufferl; _i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/rpc.java
throw new NdrException(NdrException.INVALID_CONFORMANCE); } this.buffer = new short[_buffers]; } _src = _src.derive(_bufferi); for (int _i = 0; _i < _bufferl; _i++) { this.buffer[_i] = (short) _src.dec_ndr_short(); } } } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt
internal fun idnToAscii(host: String): String? { val bufferA = Buffer().writeUtf8(host) val bufferB = Buffer() // 1. Map, from bufferA to bufferB. while (!bufferA.exhausted()) { val codePoint = bufferA.readUtf8CodePoint() if (!IDNA_MAPPING_TABLE.map(codePoint, bufferB)) return null } // 2. Normalize, from bufferB to bufferA. val normalized = normalizeNfc(bufferB.readUtf8()) bufferA.writeUtf8(normalized)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 11.2K bytes - Viewed (0)