Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 1,386 for Byte (0.02 sec)

  1. schema/serializer.go

    	fieldValue := reflect.New(field.FieldType)
    
    	if dbValue != nil {
    		var bytes []byte
    		switch v := dbValue.(type) {
    		case []byte:
    			bytes = v
    		case string:
    			bytes = []byte(v)
    		default:
    			bytes, err = json.Marshal(v)
    			if err != nil {
    				return err
    			}
    		}
    
    		if len(bytes) > 0 {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Jun 20 08:45:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/Name.java

        }
    
        int readWireFormat(final byte[] src, final int srcIndex) {
    
            final byte tmp[] = new byte[SCOPE_OFFSET];
            int length = 15;
            for (int i = 0; i < 15; i++) {
                tmp[i] = (byte) ((src[srcIndex + 2 * i + 1] & 0xFF) - 0x41 << 4);
                tmp[i] |= (byte) ((src[srcIndex + 2 * i + 2] & 0xFF) - 0x41 & 0x0F);
                if (tmp[i] != (byte) ' ') {
                    length = i + 1;
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int)
         */
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws SMBProtocolDecodingException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  4. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

            v.add(new DERTaggedObject(true, 2, new DERBitString(new byte[] { apOptions }))); // first byte read by impl
            return new DERSequence(v);
        }
    
        @Test
        @DisplayName("byte[] ctor: empty token throws PACDecodingException with clear message")
        void byteArrayConstructor_emptyToken_throws() {
            // Arrange
            byte[] empty = new byte[0];
    
            // Act + Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java

        }
    
        /**
         * Test of readParameterWordsWireFormat method
         */
        @Test
        public void testReadParameterWordsWireFormat() {
            // Given
            byte[] buffer = new byte[] { (byte) 0xff, (byte) 0xff, 0, 0, 0, 0, 0, 0 };
            SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config);
    
            // When
            int result = instance.readParameterWordsWireFormat(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/DcerpcHandle.java

         * @throws IOException
         * @throws DcerpcException
         * @throws NdrException
         */
        private byte[] receiveMoreFragments(final DcerpcMessage msg, byte[] in) throws IOException, DcerpcException, NdrException {
            int off = msg.ptype == 2 ? msg.length : 24;
            final byte[] fragBytes = new byte[this.max_recv];
            final NdrBuffer fragBuf = new NdrBuffer(fragBytes, 0);
            while (!msg.isFlagSet(DCERPC_LAST_FRAG)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

            @DisplayName("Returns 0 regardless of dst and index")
            void returnsZero_forVariousIndexes(int index) {
                // Arrange
                Smb2LogoffResponse resp = newResponse();
                byte[] buffer = new byte[8];
                byte[] original = buffer.clone();
    
                // Act
                int written = resp.writeBytesWireFormat(buffer, index);
    
                // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

         * @param chlng
         *            The server challenge.
         * @return A <code>byte[]</code> containing the effective user session key,
         *         used in SMB MAC signing and NTLMSSP signing and sealing.
         */
        public byte[] getUserSessionKey(CIFSContext tc, byte[] chlng) {
            byte[] key = new byte[16];
            try {
                getUserSessionKey(tc, chlng, key, 0);
            } catch (Exception ex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  9. src/archive/zip/zip_test.go

    	last := &r.buf[len(r.buf)-1]
    	return last.off + last.n
    }
    
    func (r *rleBuffer) Write(p []byte) (n int, err error) {
    	var rp *repeatedByte
    	if len(r.buf) > 0 {
    		rp = &r.buf[len(r.buf)-1]
    		// Fast path, if p is entirely the same byte repeated.
    		if lastByte := rp.b; len(p) > 0 && p[0] == lastByte {
    			if bytes.Count(p, []byte{lastByte}) == len(p) {
    				rp.n += int64(len(p))
    				return len(p), nil
    			}
    		}
    	}
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/SMBSigningDigestTest.java

        }
    
        @Test
        @DisplayName("Test sign method with different offsets")
        void testSignWithDifferentOffsets() {
            // Arrange
            byte[] largeData = new byte[100];
            for (int i = 0; i < largeData.length; i++) {
                largeData[i] = (byte) i;
            }
    
            // Test with different offsets
            int[] offsets = { 0, 10, 50, 90 };
    
            for (int offset : offsets) {
                // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top