- Sort Score
- Num 10 results
- Language All
Results 221 - 230 of 1,599 for BYTE (0.07 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java
// For Unicode: 1 byte (initial null in writeBytesWireFormat) // + potential 1 byte alignment (in writeString) + fileName.length() * 2 + 2 bytes (terminating nulls) // Since headerStart is 0 and dstIndex starts at 1 (after initial null), (1-0)%2=1, so alignment byte added // Total: 1 + 1 + 12*2 + 2 = 28 bytes byte[] dst = new byte[30]; // Use extra buffer space to avoid index errorsCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java
DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); byte[] b = new byte[data.length]; in.readFully(b); assertEquals(Bytes.asList(data), Bytes.asList(b)); } public void testReadUnsignedByte_eof() throws IOException { DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0])); assertThrows(EOFException.class, in::readUnsignedByte); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 4.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthentication.java
*/ @Override public void getUserSessionKey(final CIFSContext tc, final byte[] chlng, final byte[] dest, final int offset) throws SmbException { if (this.hashesExternal) { return; } super.getUserSessionKey(tc, chlng, dest, offset); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
elementVector.add(new DERTaggedObject(0, new ASN1Integer(1))); // authType elementVector.add(new DERTaggedObject(1, new DEROctetString(new byte[] { 0x01, 0x02 }))); // authData authVector.add(new DERSequence(elementVector)); byte[] token = new DERSequence(authVector).getEncoded(); Map<Integer, KerberosKey> keys = new HashMap<>(); // 2. WHEN
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9K bytes - Click Count (0) -
src/test/java/jcifs/spnego/NegTokenTargTest.java
ASN1ObjectIdentifier mech = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"); byte[] tokenArray = new byte[] { 1, 2, 3 }; byte[] mic = new byte[] { 9, 9, 9 }; NegTokenTarg original = new NegTokenTarg(NegTokenTarg.ACCEPT_COMPLETED, mech, tokenArray, mic); // Act – serialise and parse back byte[] bytes = original.toByteArray(); NegTokenTarg roundTrip = new NegTokenTarg(bytes);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/compression/CompressionService.java
* * @param data the data to compress * @param algorithm the compression algorithm to use * @return the compressed data * @throws CIFSException if compression fails */ byte[] compress(byte[] data, int algorithm) throws CIFSException; /** * Compresses data using the specified algorithm with offset and length. * * @param data the data bufferCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
@Test @DisplayName("Should encode at different buffer positions") void testEncodeAtDifferentPositions() { int[] hashAlgos = { 1, 2 }; byte[] salt = new byte[8]; Arrays.fill(salt, (byte) 0xFF); context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); // Encode at position 100Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
bufferIndex += 16; // Write version major (1 byte) buffer[bufferIndex++] = (byte) versionMajor; // Write version minor (1 byte) buffer[bufferIndex++] = (byte) versionMinor; // Write type (4 bytes) SMBUtil.writeInt4(serverType, buffer, bufferIndex); bufferIndex += 4; // Write comment offset (4 bytes)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 25.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
private final byte[] salt; private final int hashAlgorithm; private volatile byte[] currentHash; private volatile boolean isValid; private final Object hashLock = new Object(); public PreauthIntegrityContext(byte[] salt, int hashAlgorithm) { this.salt = salt != null ? salt.clone() : new byte[0]; this.hashAlgorithm = hashAlgorithm;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 12.1K bytes - Click Count (0) -
internal/grid/connection_test.go
}) errFatal(err) // 1: Echo errFatal(local.RegisterSingleHandler(handlerTest, func(payload []byte) ([]byte, *RemoteErr) { t.Log("1: server payload: ", len(payload), "bytes.") return append([]byte{}, payload...), nil })) // 2: Return as error errFatal(local.RegisterSingleHandler(handlerTest2, func(payload []byte) ([]byte, *RemoteErr) { t.Log("2: server payload: ", len(payload), "bytes.") err := RemoteErr(payload)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 5.9K bytes - Click Count (0)