- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 475 for COffset (0.13 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
@Test @DisplayName("Should decode at different buffer offset") void testDecodeWithOffset() throws SMBProtocolDecodingException { byte[] buffer = new byte[256]; int offset = 100; byte[] responseData = createValidCopyChunkResponse(10, 131072, 1310720); System.arraycopy(responseData, 0, buffer, offset, responseData.length);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0) -
src/bytes/reader.go
return nil } // Seek implements the [io.Seeker] interface. func (r *Reader) Seek(offset int64, whence int) (int64, error) { r.prevRune = -1 var abs int64 switch whence { case io.SeekStart: abs = offset case io.SeekCurrent: abs = r.i + offset case io.SeekEnd: abs = int64(len(r.s)) + offset default: return 0, errors.New("bytes.Reader.Seek: invalid whence") } if abs < 0 {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jul 16 18:17:37 UTC 2024 - 3.9K bytes - Viewed (0) -
chainable_api.go
return } // Offset specify the number of records to skip before starting to return the records // // Offset conditions can be cancelled by using `Offset(-1)`. // // // select the third user // db.Offset(2).First(&user) // // select the first user by cancelling an earlier chained offset // db.Offset(5).Offset(-1).First(&user) func (db *DB) Offset(offset int) (tx *DB) { tx = db.getInstance()
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 14.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
void testReadAtDifferentOffsets(int offset) throws SMBProtocolDecodingException { byte[] buffer = new byte[1024]; byte[] responseData = createValidWriteResponse(2048, 1024); System.arraycopy(responseData, 0, buffer, offset, responseData.length); int bytesRead = response.readBytesWireFormat(buffer, offset); assertEquals(16, bytesRead);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
cmd/naughty-disk_test.go
func (d *naughtyDisk) ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error) { if err := d.calcError(); err != nil { return 0, err } return d.disk.ReadFile(ctx, volume, path, offset, buf, verifier) } func (d *naughtyDisk) ReadFileStream(ctx context.Context, volume, path string, offset, length int64) (io.ReadCloser, error) { if err := d.calcError(); err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Apr 25 05:41:04 UTC 2025 - 10.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/HMACT64.java
return md5.digest(digest); } @Override protected int engineDigest(final byte[] buf, final int offset, final int len) { final byte[] digest = md5.digest(); md5.update(opad); md5.update(digest); try { return md5.digest(buf, offset, len); } catch (final Exception ex) { throw new IllegalStateException(); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/util/HMACT64.java
return this.md5.digest(digest); } @Override protected int engineDigest(final byte[] buf, final int offset, final int len) { final byte[] digest = this.md5.digest(); this.md5.update(this.opad); this.md5.update(digest); try { return this.md5.digest(buf, offset, len); } catch (final Exception ex) { throw new IllegalStateException(); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
assertEquals(0, SMBUtil.readInt2(buffer, offset + 2)); // Verify Reserved (4 bytes at offset+4, should be 0) assertEquals(0, SMBUtil.readInt4(buffer, offset + 4)); // Verify file ID is copied correctly (16 bytes starting at offset+8) byte[] copiedFileId = new byte[16]; System.arraycopy(buffer, offset + 8, copiedFileId, 0, 16); assertArrayEquals(testFileId, copiedFileId); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
assertEquals(ttl, ref.getTtl()); } } // Buffer Offset Tests @Test public void testDecodeFromNonZeroIndex() { int offset = 100; ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN); bb.position(offset); bb.putShort((short) 1); bb.putShort((short) 24); bb.putShort((short) 1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 22K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/SMBUtilTest.java
assertEquals(0xFFFF, SMBUtil.readInt2(buffer, 14)); // Test different offsets for (int offset = 0; offset <= 8; offset++) { SMBUtil.writeInt4(0x12345678, buffer, offset); assertEquals(0x12345678, SMBUtil.readInt4(buffer, offset)); } } @Test void testNegativeValueHandling() { byte[] buffer = new byte[8];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0)