- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,352 for BYTE (0.03 sec)
-
src/bytes/boundary_test.go
q[j-1] = 1 // difference is only found on the last byte for i := range b { idx := Index(b[i:], q[:j]) if idx != -1 { t.Fatalf("Index(b[%d:], q[:%d])=%d, want -1\n", i, j, idx) } } q[j-1] = 0 } // Test differing alignments and sizes of q which always end on a page boundary. q[len(q)-1] = 1 // difference is only found on the last byte for j := 0; j < len(q); j++ { for i := range b {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Nov 30 20:05:58 UTC 2023 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
// Arrange byte[] largeData = new byte[1000]; for (int i = 0; i < largeData.length; i++) { largeData[i] = (byte) (i % 256); } int offset = 990; int length = 10; TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, largeData, offset, length); byte[] dst = new byte[100]; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
// Given byte[] zeroKey = new byte[SOURCE_KEY_SIZE]; byte[] maxKey = new byte[SOURCE_KEY_SIZE]; Arrays.fill(maxKey, (byte) 0xFF); byte[] patternKey = new byte[SOURCE_KEY_SIZE]; for (int i = 0; i < SOURCE_KEY_SIZE; i++) { patternKey[i] = (byte) i; } // When & Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
cmd/bucket-replication-metrics_gen.go
} // MarshalMsg implements msgp.Marshaler func (z InQueueStats) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 0 _ = z o = append(o, 0x80) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *InQueueStats) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var zb0001 uint32 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Mar 21 17:21:35 UTC 2024 - 33.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
byte[] fileId = new byte[16]; for (int i = 0; i < fileId.length; i++) fileId[i] = (byte) (i + 1); byte[] header = buildSmb2Header(); byte[] body = buildCreateBodyNoContexts((byte) 0x7, (byte) 0x2, 0x11223344, 1111L, 2222L, 3333L, 4444L, 123456789L, 987654321L, 0xA5A5A5A5, fileId); byte[] packet = buildPacket(header, body, null, null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
} @Test @DisplayName("Test writeBytesWireFormat returns 0") void testWriteBytesWireFormat() { response = new Smb2QueryInfoResponse(mockConfig, (byte) 1, (byte) 2); byte[] dst = new byte[1024]; int dstIndex = 0; int result = response.writeBytesWireFormat(dst, dstIndex); assertEquals(0, result); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
// Arrange Name realName = new Name(mockConfig, "SERVER", 0x20, "domain.local"); nodeStatusRequest = new NodeStatusRequest(mockConfig, realName); byte[] dst1 = new byte[100]; byte[] dst2 = new byte[100]; // Act int result1 = nodeStatusRequest.writeBodyWireFormat(dst1, 0); int result2 = nodeStatusRequest.writeBodyWireFormat(dst2, 0); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java
void testCompleteWireFormatWriting() { trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.FS_SIZE_INFO); byte[] setupBuffer = new byte[256]; byte[] paramBuffer = new byte[256]; byte[] dataBuffer = new byte[256]; int setupWritten = trans2QueryFSInfo.writeSetupWireFormat(setupBuffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
assertThat(Chars.fromByteArray(new byte[] {0x23, 0x45, (byte) 0xDC})).isEqualTo('\u2345'); assertThat(Chars.fromByteArray(new byte[] {(byte) 0xFE, (byte) 0xDC})).isEqualTo('\uFEDC'); } @GwtIncompatible // Chars.fromByteArray public void testFromByteArrayFails() { assertThrows( IllegalArgumentException.class, () -> Chars.fromByteArray(new byte[Chars.BYTES - 1])); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvPairsTest.java
void testDecodeAvChannelBindings() throws CIFSException { byte[] data = new byte[] { (byte) 0xAA, (byte) 0xBB }; byte[] avPairData = createAvPairData(AvPair.MsvAvChannelBindings, data); byte[] eolData = createEolData(); byte[] fullData = new byte[avPairData.length + eolData.length]; System.arraycopy(avPairData, 0, fullData, 0, avPairData.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0)