- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 966 for 1bytes (0.03 sec)
-
src/main/java/jcifs/smb1/ntlmssp/Type2Message.java
String target = null; byte[] bytes = readSecurityBuffer(material, 12); if (bytes.length != 0) { target = new String(bytes, (flags & NTLMSSP_NEGOTIATE_UNICODE) != 0 ? UNI_ENCODING : getOEMEncoding()); } setTarget(target); for (int i = 24; i < 32; i++) { if (material[i] != 0) { final byte[] challenge = new byte[8];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java
} @Override public int size() { // Context header: 16 bytes // Name: 4 bytes ("RqLs") // Padding: 4 bytes (to align data to 8-byte boundary) // Data: 32 bytes (lease V1 structure) return 16 + 4 + 4 + 32; } @Override public int encode(byte[] dst, int dstIndex) { int start = dstIndex; // Write context header
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
void testWriteBytesWireFormat() throws UnsupportedEncodingException { byte[] expectedBytes = DIALECTS.getBytes("ASCII"); byte[] dst = new byte[expectedBytes.length]; int dstIndex = 0; // Execute the method to write bytes int bytesWritten = smbComNegotiate.writeBytesWireFormat(dst, dstIndex); // Verify the number of bytes written
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
public void testBytes() { Sink sink = new Sink(4); // byte order insignificant here byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8}; sink.putByte((byte) 1); sink.putBytes(new byte[] {2, 3, 4, 5, 6}); sink.putByte((byte) 7); sink.putBytes(new byte[] {}); sink.putBytes(new byte[] {8}); HashCode unused = sink.hash(); sink.assertInvariants(8); sink.assertBytes(expected);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
byte[] testSessionKey = new byte[16]; Arrays.fill(testSessionKey, (byte) 0xAA); byte[] testPreauth = new byte[64]; Arrays.fill(testPreauth, (byte) 0xBB); // When byte[] signingKey300 = Smb3KeyDerivation.deriveSigningKey(Smb2Constants.SMB2_DIALECT_0300, testSessionKey, testPreauth);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
byte[] buffer = new byte[256]; int written = trans2FindNext2.writeParametersWireFormat(buffer, 0); // Verify sid (2 bytes) assertEquals(TEST_SID, SMBUtil.readInt2(buffer, 0)); // Verify maxItems (2 bytes) assertEquals(TEST_BATCH_COUNT, SMBUtil.readInt2(buffer, 2)); // Verify informationLevel (2 bytes) - should be SMB_FILE_BOTH_DIRECTORY_INFO (0x104)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
// Arrange: revision=1, count=2, identAuth zeros except last byte, subauth 10, 20 byte[] ident = new byte[] { 0, 0, 0, 0, 0, 5 }; rpc.sid_t st = buildSidT((byte) 1, ident, 10, 20); byte[] bytes = SID.toByteArray(st); // Act: construct from bytes and re-encode SID sid = new SID(bytes, 0); byte[] roundTrip = sid.toByteArray(); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComWrite.java
* @param remaining the number of bytes remaining to be written * @param b the data buffer containing bytes to write * @param off the offset in the buffer where data starts * @param len the number of bytes to write */ public SmbComWrite(final Configuration config, final int fid, final int offset, final int remaining, final byte[] b, final int off, final int len) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
// Mock attributes (4 bytes) buffer[32] = 0x01; buffer[33] = 0x00; buffer[34] = 0x00; buffer[35] = 0x00; return buffer; } private byte[] createMockFileStandardInfoBuffer() { // Create a buffer that represents FileStandardInfo data byte[] buffer = new byte[24]; // Mock allocation size (8 bytes) for (int i = 0; i < 8; i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0)