- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 562 for Offset (0.18 seconds)
-
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
buffer[offset] = 0x01; // revision buffer[offset + 1] = 0x00; // padding SMBUtil.writeInt2(0x8004, buffer, offset + 2); // type SMBUtil.writeInt4(0, buffer, offset + 4); // owner offset SMBUtil.writeInt4(0, buffer, offset + 8); // group offset SMBUtil.writeInt4(0, buffer, offset + 12); // SACL offset SMBUtil.writeInt4(20, buffer, offset + 16); // DACL offset
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
buffer.putShort((short) 0x8004); // Control flags (SE_DACL_PRESENT | SE_SELF_RELATIVE) buffer.putInt(20); // Owner offset buffer.putInt(40); // Group offset buffer.putInt(0); // SACL offset (null) buffer.putInt(60); // DACL offset // Owner SID at offset 20 buffer.position(20); buffer.put((byte) 0x01); // Revision buffer.put((byte) 0x01); // SubAuthorityCount
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
} @Test @DisplayName("Should decode at non-zero offset") void testDecodeWithOffset() throws SMBProtocolDecodingException { int offset = 50; SMBUtil.writeInt2(1, buffer, offset); SMBUtil.writeInt2(EncryptionNegotiateContext.CIPHER_AES128_GCM, buffer, offset + 2); EncryptionNegotiateContext context = new EncryptionNegotiateContext();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) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
// Encode test data at offset int offset = bufferIndex; SMBUtil.writeInt4(idFileSystem, buffer, offset); offset += 4; SMBUtil.writeInt4(sectPerAlloc, buffer, offset); offset += 4; SMBUtil.writeInt4((int) alloc, buffer, offset); offset += 4; SMBUtil.writeInt4((int) free, buffer, offset); offset += 4;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
this.readLength = readLength; } /** * Sets the file offset from which to start reading * * @param offset * the offset to set */ public void setOffset(final long offset) { this.offset = offset; } /** * Sets the minimum number of bytes that must be read for the operation to succeed *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 7.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2Lock.java
*/ public static final int SMB2_LOCKFLAG_FAIL_IMMEDIATELY = 0x10; private final long offset; private final long length; private final int flags; /** * Constructs an SMB2 lock element with the specified parameters. * * @param offset the byte offset in the file where the lock begins * @param length the number of bytes to lockCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.8K bytes - Click Count (0) -
src/bytes/compare_test.go
buffer := make([]byte, len(tt.b)+numShifts) // vary the input alignment of tt.b for offset := 0; offset <= numShifts; offset++ { shiftedB := buffer[offset : len(tt.b)+offset] copy(shiftedB, tt.b) cmp := Compare(tt.a, shiftedB) if cmp != tt.i { t.Errorf(`Compare(%q, %q), offset %d = %v; want %v`, tt.a, tt.b, offset, cmp, tt.i) } } } } func TestCompareIdenticalSlice(t *testing.T) {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jul 13 23:11:42 GMT 2023 - 6.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
byte[] buffer = new byte[256]; int offset = 10; // When int bytesWritten = request.writeBytesWireFormat(buffer, offset); // Then assertEquals(4, bytesWritten); // Verify structure size (4) is written at offset assertEquals(4, SMBUtil.readInt2(buffer, offset)); // Verify reserved field (0) is written at offset + 2
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java
this.elementSet = elementSet; this.cumulativeCounts = cumulativeCounts; this.offset = offset; this.length = length; } private int getCount(int index) { return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]); } @Override Entry<E> getEntry(int index) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 4.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/dtyp/ACETest.java
@Test @DisplayName("Test decode with offset") void testDecodeWithOffset() { // Prepare test data with offset testBuffer = new byte[150]; int offset = 50; testBuffer[offset] = 0x00; // Allow ACE testBuffer[offset + 1] = 0x08; // FLAGS_INHERIT_ONLY testBuffer[offset + 2] = 0x20; // Size low byte testBuffer[offset + 3] = 0x00; // Size high byteCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.6K bytes - Click Count (0)