- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 435 for _offset (0.03 sec)
-
cmd/bitrot-whole.go
buf []byte // Holds bit-rot verified data } func (b *wholeBitrotReader) ReadAt(buf []byte, offset int64) (n int, err error) { if b.buf == nil { b.buf = make([]byte, b.tillOffset-offset) if _, err := b.disk.ReadFile(context.TODO(), b.volume, b.filePath, offset, b.buf, b.verifier); err != nil { return 0, err } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
// Create buffer with offset byte[] buffer = new byte[20]; int offset = 5; original.encode(buffer, offset); // Decode from offset FileEndOfFileInformation decoded = new FileEndOfFileInformation(); int decodedBytes = decoded.decode(buffer, offset, 8); assertEquals(8, decodedBytes); // Verify the values match
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/DiscreteDomain.java
/** Private constructor for built-in DiscreteDomains supporting fast offset. */ private DiscreteDomain(boolean supportsFastOffset) { this.supportsFastOffset = supportsFastOffset; } /** * Returns, conceptually, "origin + distance", or equivalently, the result of calling {@link * #next} on {@code origin} {@code distance} times. */ C offset(C origin, long distance) { C current = origin;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 10.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
// Reflectively inspect the private 'offset' field to assert it used the advanced fp Field offField = Smb2ReadRequest.class.getDeclaredField("offset"); offField.setAccessible(true); long offVal = offField.getLong(req); assertEquals(2L, offVal, "Request offset should match skipped bytes"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
@DisplayName("Should handle hexdump with offset") void testHexdumpWithOffset() { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(baos); // Create test data and dump from offset byte[] data = createTestData(64); int offset = 16; int length = 32; Hexdump.hexdump(ps, data, offset, length);
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/main/java/jcifs/internal/dtyp/SecurityDescriptor.java
bufferIndex += 2; final int ownerUOffset = SMBUtil.readInt4(buffer, bufferIndex); // offset to owner sid bufferIndex += 4; final int ownerGOffset = SMBUtil.readInt4(buffer, bufferIndex); // offset to group sid bufferIndex += 4; SMBUtil.readInt4(buffer, bufferIndex); // offset to sacl bufferIndex += 4; final int daclOffset = SMBUtil.readInt4(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/QueryResponseList.java
* @param pageSize the number of records per page * @param offset the offset value for pagination */ protected QueryResponseList(final List<Map<String, Object>> documentList, final int start, final int pageSize, final int offset) { parent = documentList; this.offset = offset; this.start = start; this.pageSize = pageSize; } /**
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
@Test @DisplayName("Test writeSetupWireFormat with offset") void testWriteSetupWireFormatWithOffset() { trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo); byte[] buffer = new byte[256]; int offset = 50; int written = trans2SetFileInfo.writeSetupWireFormat(buffer, offset); // Should write 2 bytes at offset assertEquals(2, written);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
cmd/bitrot-streaming.go
func (b *streamingBitrotReader) ReadAt(buf []byte, offset int64) (int, error) { var err error if offset%b.shardSize != 0 { // Offset should always be aligned to b.shardSize // Can never happen unless there are programmer bugs return 0, errUnexpected } if b.rc == nil { // For the first ReadAt() call we need to open the stream for reading. b.currOffset = offset streamOffset := (offset/b.shardSize)*int64(b.h.Size()) + offset
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jan 17 19:19:30 UTC 2025 - 6.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
int offset = 64; writeSecurityBuffer(type3, 12, offset, lmResponse); offset += lmLength; writeSecurityBuffer(type3, 20, offset, ntResponse); offset += ntLength; writeSecurityBuffer(type3, 28, offset, domain); offset += domainLength; writeSecurityBuffer(type3, 36, offset, user); offset += userLength;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K bytes - Viewed (0)