- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 342 for aligned (0.05 sec)
-
api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java
Duration difference = Duration.between(monotonic, system).abs(); assertTrue(difference.getSeconds() <= 1, "Monotonic time should be reasonably aligned with system time"); }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 15 06:28:29 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
@Test void testStringReadWriteUnicodeWithOddAlignment() throws UnsupportedEncodingException { smb.useUnicode = true; smb.headerStart = 1; // Make the start odd String testString = "Aligned Unicode"; byte[] buffer = new byte[testString.length() * 2 + 2 + 1]; // +1 for alignment int len = smb.writeString(testString, buffer, 1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
assertEquals(size1, size2); } @Test @DisplayName("Size should be 72 bytes (64 header + 4 body aligned to 8)") void testExactSize() { // SMB2_HEADER_LENGTH = 64, body = 4, total = 68 // size8 aligns to 8-byte boundary: (68 + 7) & ~7 = 72 assertEquals(72, echoRequest.size()); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
cmd/os-instrumented.go
func init() { // Inject metrics. ioutilx.OsOpenFile = OpenFile ioutilx.OpenFileDirectIO = OpenFileDirectIO ioutilx.OsOpen = Open } type osMetrics struct { // All fields must be accessed atomically and aligned. operations [osMetricLast]uint64 latency [osMetricLast]lockedLastMinuteLatency } // time an os action. func (o *osMetrics) time(s osMetric) func() { startTime := time.Now() return func() {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.2K bytes - Viewed (0) -
CODE_OF_CONDUCT.md
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. ## Scope
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Fri Feb 05 18:43:16 UTC 2021 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
bb.putShort((short) 0); // altPathOffset bb.putShort((short) 0); // nodeOffset // Path string at offset 23 (which should be aligned to 24) bb.position(24); // Aligned position String path = "\\\\test"; bb.put(path.getBytes(StandardCharsets.UTF_16LE)); bb.putShort((short) 0); // Decode from position 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/smb2/create/CreateContextRequestTest.java
int encodedSize = req.encode(buffer, 0); // Verify 8-byte alignment assertEquals(0, encodedSize % 8, "Encoded size should be 8-byte aligned for name length " + nameLen); } } @ParameterizedTest @ValueSource(ints = { 0, 10, 50, 100, 200 }) @DisplayName("Should handle various buffer offsets")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
cmd/bitrot-streaming.go
return closer.Close() } return nil } 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
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jan 17 19:19:30 UTC 2025 - 6.2K bytes - Viewed (0) -
cmd/data-scanner-metric.go
) //go:generate stringer -type=scannerMetric -trimprefix=scannerMetric $GOFILE type scannerMetric uint8 type scannerMetrics struct { // All fields must be accessed atomically and aligned. operations [scannerMetricLast]uint64 latency [scannerMetricLastRealtime]lockedLastMinuteLatency // actions records actions performed. actions [lifecycle.ActionCount]uint64
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
assertEquals(expectedSize, request.size()); } @Test @DisplayName("Should align size to 8-byte boundary") void testSizeAlignment() { int size = request.size(); assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary"); } @Test @DisplayName("Should have consistent size regardless of parameters")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0)