- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 540 for YOffset (0.05 seconds)
-
src/archive/zip/struct.go
// timeZone returns a *time.Location based on the provided offset. // If the offset is non-sensible, then this uses an offset of zero. func timeZone(offset time.Duration) *time.Location { const ( minOffset = -12 * time.Hour // E.g., Baker island at -12:00 maxOffset = +14 * time.Hour // E.g., Line island at +14:00 offsetAlias = 15 * time.Minute // E.g., Nepal at +5:45 ) offset = offset.Round(offsetAlias)
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue May 28 21:41:09 GMT 2024 - 12.1K bytes - Click Count (0) -
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.8K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
int offset = 0; int size = 3; // Simulate successful verification when(mockResponse.verifySignature(buffer, offset, size)).thenReturn(true); assertTrue(mockResponse.verifySignature(buffer, offset, size)); // Simulate failed verification when(mockResponse.verifySignature(buffer, offset, size)).thenReturn(false);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java
final int ownerUOffset = ServerMessageBlock.readInt4(buffer, bufferIndex); // offset to owner sid bufferIndex += 4; final int ownerGOffset = ServerMessageBlock.readInt4(buffer, bufferIndex); // offset to group sid bufferIndex += 4; final int saclOffset = ServerMessageBlock.readInt4(buffer, bufferIndex); // offset to sacl bufferIndex += 4;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java
* @param offset * The starting offset in the input data * @param len * The length of data to process */ public void update(final byte[] input, final int offset, final int len) { if (log.isTraceEnabled()) { log.trace("update: " + this.updates + " " + offset + ":" + len);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 11.9K bytes - Click Count (0) -
internal/s3select/jstream/decoder.go
} func (d *Decoder) emitAny() (any, error) { if d.pos >= atomic.LoadInt64(&d.end) { return nil, d.mkError(ErrUnexpectedEOF) } offset := d.pos - 1 i, t, err := d.any() if d.willEmit() { d.metaCh <- &MetaValue{ Offset: int(offset), Length: int(d.pos - offset), Depth: d.depth, Value: i, ValueType: t, } } return i, err }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 13.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
assertEquals(expectedBytesWritten, bytesWritten); // Verify structure assertEquals(25, SMBUtil.readInt2(buffer, offset)); // Structure size assertEquals(TEST_SECURITY_MODE, buffer[offset + 3] & 0xFF); // Security mode assertEquals(TEST_CAPABILITIES, SMBUtil.readInt4(buffer, offset + 4)); // Capabilities } @Test @DisplayName("Should handle session binding scenarios")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
} // Helper method to extract string from buffer private String extractStringFromBuffer(byte[] buffer, int offset, int maxLen) { int end = offset; while (end < offset + maxLen && buffer[end] != 0) { end++; } return new String(buffer, offset, end - offset, StandardCharsets.UTF_8); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/LoggingOutputStream.java
/** The buffer of bytes sent to the stream */ private byte[] buffer = new byte[DEFAULT_BUFFER_LENGTH]; /** Offset of the start of unwritten data in the buffer */ private int start = 0; /** Offset of the end (semi-open) of unwritten data in the buffer */ private int end = 0; @Override public void write(final int b) throws IOException {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.1K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeHandleTest.java
* Verifies that the method returns the correct time zone offset. * @throws CIFSException */ @Test void testGetServerTimeZoneOffset() throws CIFSException { when(smbTreeHandle.getServerTimeZoneOffset()).thenReturn(0L); assertEquals(0L, smbTreeHandle.getServerTimeZoneOffset(), "Server time zone offset should be 0"); when(smbTreeHandle.getServerTimeZoneOffset()).thenReturn(3600000L);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.1K bytes - Click Count (0)