- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 794 for BYTES (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
/** 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; } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
// Then assertEquals(2, bytesRead, "Should read 2 bytes"); assertTrue(response.isSupportSearchBits(), "Should decode search bits flag"); assertTrue(response.isShareDfs(), "Should decode DFS flag"); } @Test @DisplayName("Should decode bytes correctly") void testReadBytesWireFormat() throws Exception {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
// Verify structure according to SMB2 CLOSE specification // Structure Size (2 bytes) - should be 24 assertEquals(24, SMBUtil.readInt2(buffer, 0)); // Flags (2 bytes) - should be 0 by default assertEquals(0, SMBUtil.readInt2(buffer, 2)); // Reserved (4 bytes) - The implementation skips writing these bytes, // so they will have the initial pattern (0xCCCCCCCC)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (0) -
android/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,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 25.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/flowcontrol/WindowCounter.kt
* limitations under the License. */ package okhttp3.internal.http2.flowcontrol class WindowCounter( val streamId: Int, ) { /** The total number of bytes consumed. */ var total: Long = 0L private set /** The total number of bytes acknowledged by outgoing `WINDOW_UPDATE` frames. */ var acknowledged: Long = 0L private set val unacknowledged: Long @Synchronized get() = total - acknowledged
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java
// Encode input parameters for WitnessAsyncNotify // Context handle (20 bytes) if (contextHandle != null) { buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20)); // Pad with zeros if context handle is shorter than 20 bytes for (int i = contextHandle.length; i < 20; i++) { buf.enc_ndr_small(0); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 16.4K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type3MessageTest.java
void testInvalidMessageBytes() { // Given byte[] invalidBytes = { 1, 2, 3, 4, 5 }; // Too short and invalid // When/Then assertThrows(IOException.class, () -> { new Type3Message(invalidBytes); }); } @Test @DisplayName("Should handle parsing null message bytes") void testNullMessageBytes() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
} /** * Creates an {@link java.io.OutputStream} for writing bytes to a file * on an SMB server addressed by the <code>SmbFile</code> parameter. See * {@link jcifs.smb.SmbFile} for a detailed description and examples of * the smb URL syntax. If the second argument is <code>true</code>, then * bytes will be written to the end of the file rather than the beginning. * * @param fileCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
// Verify that inputBuffer.encode was called verify(mockInputBuffer).encode(any(byte[].class), anyInt()); // Verify total bytes written assertEquals(90, bytesWritten); // 40 bytes header + 50 bytes input buffer } catch (Exception e) { throw new RuntimeException(e); } } @ParameterizedTestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/ntlmssp/Type2Message.java
return "Type2Message[target=" + target + ",challenge=" + (challenge == null ? "null" : "<" + challenge.length + " bytes>") + ",context=" + (context == null ? "null" : "<" + context.length + " bytes>") + ",targetInformation=" + (targetInformation == null ? "null" : "<" + targetInformation.length + " bytes>") + ",flags=0x" + jcifs.smb1.util.Hexdump.toHexString(getFlags(), 8) + "]"; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 13K bytes - Click Count (0)