Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 1,352 for 1byte (0.24 sec)

  1. 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)
  2. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformation.java

            maxDataCount = 800;
            maxSetupCount = 0;
        }
    
        @Override
        int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = subCommand;
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            return 2;
        }
    
        @Override
        int writeParametersWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            writeInt2(informationLevel, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. cmd/bucket-stats_gen.go

    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z RMetricName) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendString(o, string(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *RMetricName) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	{
    		var zb0001 string
    		zb0001, bts, err = msgp.ReadStringBytes(bts)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            Smb2SessionSetupResponse resp = newResponse();
    
            byte[] buf = new byte[256];
            int headerStart = 0;
            long expectedSessionId = 0x1122334455667788L;
            buildHeader(buf, headerStart, NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, 0x0001, expectedSessionId);
    
            int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
            byte[] blob = new byte[] { 10, 20, 30, 40, 50 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            assertEquals(0, emptyRead);
            assertEquals(0, fullRead);
        }
    
        /**
         * Create a test byte array with specified size and pattern
         */
        private byte[] createTestData(int size) {
            byte[] data = new byte[size];
            for (int i = 0; i < size; i++) {
                data[i] = (byte) (i % 256);
            }
            return data;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/NodeStatusResponse.java

            this.macAddress = new byte[6];
        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int readBodyWireFormat(final byte[] src, final int srcIndex) {
            return readResourceRecordWireFormat(src, srcIndex);
        }
    
        @Override
        int writeRDataWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            byte[] src = new byte[10];
            int srcIndex = 0;
    
            // Simulate groupName = false, nodeType = 0
            src[srcIndex] = (byte) 0x00;
            src[srcIndex + 1] = (byte) 0x00;
    
            // Simulate address = 0.0.0.0
            src[srcIndex + 2] = (byte) 0x00;
            src[srcIndex + 3] = (byte) 0x00;
            src[srcIndex + 4] = (byte) 0x00;
            src[srcIndex + 5] = (byte) 0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.toByteArray(0xFFEEDDCC))
            .isEqualTo(new byte[] {(byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC});
      }
    
      public void testFromByteArray() {
        assertThat(Ints.fromByteArray(new byte[] {0x12, 0x13, 0x14, 0x15, 0x33})).isEqualTo(0x12131415);
        assertThat(Ints.fromByteArray(new byte[] {(byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC}))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            byte subCmd = (byte) getPrivateField(cmd, "subCommand");
            assertEquals(subCmd, buf[0]);
            assertEquals((byte) 0x00, buf[1]);
        }
    
        @Test
        @DisplayName("writeParametersWireFormat writes referral level and path")
        void testWriteParams() throws Exception {
            Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("abc");
            setPrivateField(cmd, "maxReferralLevel", 0x12AB);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. tests/scanner_valuer_test.go

    		Birthday: sql.NullTime{Time: time.Now(), Valid: true},
    		Allergen: NullString{sql.NullString{String: "Allergen", Valid: true}},
    		Password: EncryptedData("pass1"),
    		Bytes:    []byte("byte"),
    		Num:      18,
    		Strings:  StringsSlice{"a", "b", "c"},
    		Structs: StructsSlice{
    			{"name1", "value1"},
    			{"name2", "value2"},
    		},
    		Role:             Role{Name: "admin"},
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top