- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 1,069 for nBytes (0.03 sec)
-
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
// Signature (16 bytes) byte[] signature = new byte[16]; new SecureRandom().nextBytes(signature); System.arraycopy(signature, 0, buffer, index, 16); index += 16; // Nonce (16 bytes) System.arraycopy(testNonce, 0, buffer, index, 16); index += 16; // Original message size (4 bytes) - little-endian int messageSize = 1024;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
cmd/streaming-signature-v4_test.go
} tests := []testCase{ // Test - 1 valid buffer with CRLF. {bytes.NewReader([]byte("\r\n")), nil}, // Test - 2 invalid buffer with no CRLF. {bytes.NewReader([]byte("he")), errMalformedEncoding}, // Test - 3 invalid buffer with more characters. {bytes.NewReader([]byte("he\r\n")), errMalformedEncoding}, // Test - 4 smaller buffer than expected. {bytes.NewReader([]byte("h")), io.ErrUnexpectedEOF}, }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.7K bytes - Viewed (0) -
cmd/dummy-data-generator_test.go
} } return true, "" } func TestCmpReaders(t *testing.T) { { r1 := bytes.NewReader([]byte("abc")) r2 := bytes.NewReader([]byte("abc")) ok, msg := cmpReaders(r1, r2) if !ok || msg != "" { t.Fatalf("unexpected") } } { r1 := bytes.NewReader([]byte("abc")) r2 := bytes.NewReader([]byte("abcd")) ok, _ := cmpReaders(r1, r2) if ok { t.Fatalf("unexpected") }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 4.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComWriteAndX.java
* @param fid the file identifier * @param offset the file offset at which to write * @param remaining the number of bytes remaining to be written * @param b the data buffer containing bytes to write * @param off the offset in the buffer where data starts * @param len the number of bytes to write * @param andx the next command in the AndX chain, or null */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/jcifs/util/HexdumpTest.java
// Then assertNotNull(result); assertFalse(result.isEmpty()); // Should contain hex representation of first bytes assertTrue(result.startsWith("00010203")); assertEquals(64, result.length()); // 32 bytes * 2 chars per byte } @ParameterizedTest @ValueSource(ints = { 1, 16, 32, 64, 128, 256 }) @DisplayName("Should handle various data sizes")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacUnicodeString.java
private final int pointer; /** * Constructs a new PacUnicodeString instance. * * @param length the actual length of the string in bytes * @param maxLength the maximum allocated length for the string in bytes * @param pointer the pointer/offset to the string data */ public PacUnicodeString(final short length, final short maxLength, final int pointer) { this.length = length;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/ConfiguredPublicSuffixDatabaseTest.kt
class ConfiguredPublicSuffixDatabaseTest { private val list = ConfiguredPublicSuffixList() private val publicSuffixDatabase = PublicSuffixDatabase(list) @Test fun longestMatchWins() { list.bytes = Buffer() .writeUtf8("com\n") .writeUtf8("my.square.com\n") .writeUtf8("square.com\n") .readByteString()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequest.java
} else { final byte[] fnBytes = this.fileName.getBytes(StandardCharsets.UTF_16LE); SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, fnOffsetOffset); SMBUtil.writeInt2(fnBytes.length, dst, fnLengthOffset); System.arraycopy(fnBytes, 0, dst, dstIndex, fnBytes.length); dstIndex += fnBytes.length; } return dstIndex - start; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
// Nonces should have proper size assertEquals(16, nonce1.length, "GCM nonce should be 16 bytes"); assertEquals(16, nonce2.length, "GCM nonce should be 16 bytes"); assertEquals(16, nonce3.length, "GCM nonce should be 16 bytes"); // For GCM, last 4 bytes should contain incrementing counter ByteBuffer buffer1 = ByteBuffer.wrap(nonce1, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
guava/src/com/google/common/math/Stats.java
* {@link ByteOrder#LITTLE_ENDIAN}, to which a BYTES-long byte representation of this instance * is written. In the process increases the position of {@link ByteBuffer} by BYTES. */ void writeTo(ByteBuffer buffer) { checkNotNull(buffer); checkArgument( buffer.remaining() >= BYTES,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 24.8K bytes - Viewed (0)