- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 966 for 1bytes (0.15 sec)
-
src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java
byte[] testBuffer = new byte[8]; ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN); bb.putShort((short) 0); // pathConsumed (will be divided by 2) bb.putShort((short) 0); // numReferrals bb.putShort((short) 0); // tflags bb.putShort((short) 0); // tflags high bytes (skipped in decode)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestByteSource.java
TestByteSource(byte[] bytes, TestOption... options) { this.bytes = checkNotNull(bytes); this.options = ImmutableSet.copyOf(options); } @Override public boolean wasStreamOpened() { return inputStreamOpened; } @Override public boolean wasStreamClosed() { return inputStreamClosed; } @Override public InputStream openStream() throws IOException {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestByteSource.java
TestByteSource(byte[] bytes, TestOption... options) { this.bytes = checkNotNull(bytes); this.options = ImmutableSet.copyOf(options); } @Override public boolean wasStreamOpened() { return inputStreamOpened; } @Override public boolean wasStreamClosed() { return inputStreamClosed; } @Override public InputStream openStream() throws IOException {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
assertEquals((byte) 0xCC, buffer[4]); assertEquals((byte) 0xCC, buffer[5]); assertEquals((byte) 0xCC, buffer[6]); assertEquals((byte) 0xCC, buffer[7]); // FileId (16 bytes) - should match our test file ID byte[] wireFileId = new byte[16]; System.arraycopy(buffer, 8, wireFileId, 0, 16); assertArrayEquals(testFileId, wireFileId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
class Trans2QueryFSInformationTest { /** Small helper to create a byte buffer larger than the maximum expected * wire format so that we can observe only the bytes written by a method. */ private static byte[] newBuffer(int length) { // initialise with distinct pattern to detect unused trailing bytes byte[] buf = new byte[length]; Arrays.fill(buf, (byte) 0xFF); return buf; } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
// Given byte[] buffer = new byte[60]; int bufferIndex = 0; // Structure Size (2 bytes) - must be 60 SMBUtil.writeInt2(60, buffer, bufferIndex); // Flags (2 bytes) SMBUtil.writeInt2(SMB2_CLOSE_FLAG_POSTQUERY_ATTIB, buffer, bufferIndex + 2); // Reserved (4 bytes) SMBUtil.writeInt4(0, buffer, bufferIndex + 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
} @Test @DisplayName("Test decode reads correct number of bytes") void testDecodeReadsCorrectBytes() throws SMBProtocolDecodingException { // Prepare test data byte[] buffer = new byte[22]; // Fill with pattern to verify we read correct bytes for (int i = 0; i < buffer.length; i++) { buffer[i] = (byte) (i + 1); } // Decode
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/MIENameTest.java
// MECH_OID_LEN (2 bytes big-endian) buf[i++] = (byte) ((oidLen >>> 8) & 0xFF); buf[i++] = (byte) (oidLen & 0xFF); // MECH_OID System.arraycopy(oidDer, 0, buf, i, oidLen); i += oidLen; // NAME_LEN (4 bytes big-endian) buf[i++] = (byte) ((nameLen >>> 24) & 0xFF); buf[i++] = (byte) ((nameLen >>> 16) & 0xFF); buf[i++] = (byte) ((nameLen >>> 8) & 0xFF);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0)