- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,386 for Byte (0.01 sec)
-
src/main/java/jcifs/util/ByteEncodable.java
/** * Interface for objects that can be encoded to byte arrays. * Provides standardized method for converting objects to their binary representation. * * @author mbechler */ public class ByteEncodable implements Encodable { private final byte[] bytes; private final int off; private final int len; /** * Constructs a ByteEncodable object wrapping a byte array segment. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.9K bytes - Viewed (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 buffer
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDesc.java
this.maxDataCount = 65536; this.maxSetupCount = (byte) 0x00; } @Override public int getPadding() { return 4; } @Override protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int writeParametersWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
checkNotNull(factory); return new ByteSourceFactory() { @Override public ByteSource createSource(byte[] bytes) throws IOException { return factory.createSource(bytes).slice(off, len); } @Override public byte[] getExpected(byte[] bytes) { byte[] baseExpected = factory.getExpected(bytes); int startOffset = (int) min(off, baseExpected.length);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 17.9K 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) -
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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NbtAddress.java
* byte order: the highest order byte of the address is in getAddress()[0]. * * @return a four byte array */ public byte[] getAddress() { final byte[] addr = new byte[4]; addr[0] = (byte) (this.address >>> 24 & 0xFF); addr[1] = (byte) (this.address >>> 16 & 0xFF); addr[2] = (byte) (this.address >>> 8 & 0xFF);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
checkHmac(expected, Hashing.hmacMd5(key), data); } private static void checkHmac(String expected, HashFunction hashFunc, byte[] data) { assertEquals(HashCode.fromString(expected), hashFunc.hashBytes(data)); } private static byte[] fillByteArray(int size, int toFillWith) { byte[] array = new byte[size]; Arrays.fill(array, (byte) toFillWith);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 13.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java
* @param encryptedData Encrypted data * @param unknownTag Optional unknown tag number to test error handling * @return A byte array representing the ticket * @throws IOException on encoding error */ private byte[] createTestTicketBytes(Number version, String realm, String principalName, int encType, byte[] encryptedData, Integer unknownTag) throws IOException { ASN1EncodableVector v = new ASN1EncodableVector();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java
assertTrue(result.contains("dataOffset=54")); } // Helper method to write a 2-byte integer to a byte array private void writeInt2(int val, byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val; dst[dstIndex + 1] = (byte) (val >> 8); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0)