- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,085 for bytesA (0.05 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java
int namedPipeState = 0x02; int readDataAvailable = 256; int numberOfMessages = 5; int messageLength = 128; byte[] testData = { (byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC, (byte) 0xBB, (byte) 0xAA, (byte) 0x99, (byte) 0x88 }; // Write values to buffer at offset SMBUtil.writeInt4(namedPipeState, buffer, bufferIndex);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
// TODO(jwilson): detect overflow. var result = 0L while (true) { val byteN = source.readByte().toLong() and 0xff if ((byteN and 0b1000_0000L) == 0b1000_0000L) { result = (result + (byteN and 0b0111_1111)) shl 7 } else { return result + byteN } } } /** Read a value as bytes without interpretation of its contents. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
/** * Channel type for RDMA version 1 with invalidate */ public static int SMB2_CHANNEL_RDMA_V1_INVALIDATE = 0x2; private byte[] fileId; private final byte[] outputBuffer; private final int outputBufferOffset; private byte padding; private byte readFlags; private int readLength; private long offset; private int minimumCount; private int channel; private int remainingBytes;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
void testReadLengthMaximum() { byte[] src = { (byte) 0x00, (byte) 0x01, (byte) 0xFF, (byte) 0xFF }; int length = SessionServicePacket.readLength(src, 0); assertEquals(0x01FFFF, length); } @Test @DisplayName("readLength should handle zero length") void testReadLengthZero() { byte[] src = { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Longs.java
* @throws IllegalArgumentException if {@code bytes} has fewer than 8 elements */ public static long fromByteArray(byte[] bytes) { checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES); return fromBytes( bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7]); } /** * Returns the {@code long} value whose byte representation is the given 8 bytes, in big-endianRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 29.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateResponse.java
response.maxFragmentedSize = SMBUtil.readInt4(data, idx); idx += 4; return response; } /** * Encode to byte array * * @return encoded message */ public byte[] encode() { byte[] data = new byte[32]; int idx = 0; SMBUtil.writeInt2(minVersion, data, idx); idx += 2; SMBUtil.writeInt2(maxVersion, data, idx);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
// Then // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 4 bytes for cancel structure int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 4 + 7) / 8) * 8; assertEquals(expectedSize, size, "Size calculation should be correct and 8-byte aligned"); } @Test @DisplayName("Test writeBytesWireFormat writes correct bytes") void testWriteBytesWireFormat() { // GivenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java
* Get size of this structure * * @return size in bytes (16) */ public static int size() { return 16; // 8 + 4 + 4 } /** * Encode this structure to byte array * * @param dst destination buffer * @param dstIndex starting index * @return number of bytes written */ public int encode(byte[] dst, int dstIndex) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
int totalSize = 12 + fileNameBytes.length + 50; // Extra space for safety byte[] buffer = new byte[totalSize]; // Write next entry offset (4 bytes) SMBUtil.writeInt4(nextOffset, buffer, 0); // Write action (4 bytes) SMBUtil.writeInt4(action, buffer, 4); // Write file name length (4 bytes) SMBUtil.writeInt4(fileNameBytes.length, buffer, 8);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
docs/es/docs/tutorial/request-files.md
* `write(data)`: Escribe `data` (`str` o `bytes`) en el archivo. * `read(size)`: Lee `size` (`int`) bytes/caracteres del archivo. * `seek(offset)`: Va a la posición de bytes `offset` (`int`) en el archivo. * Por ejemplo, `await myfile.seek(0)` iría al inicio del archivo.Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 7.6K bytes - Viewed (0)