Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,280 for Byte (0.03 sec)

  1. internal/event/arn_test.go

    	}
    }
    
    func TestARNUnmarshalXML(t *testing.T) {
    	testCases := []struct {
    		data        []byte
    		expectedARN *ARN
    		expectErr   bool
    	}{
    		{[]byte("<ARN></ARN>"), nil, true},
    		{[]byte("<ARN>arn:minio:sqs:::</ARN>"), nil, true},
    		{[]byte("<ARN>arn:minio:sqs::1:webhook</ARN>"), &ARN{TargetID{"1", "webhook"}, ""}, false},
    		{[]byte("<ARN>arn:minio:sqs:us-east-1:1:webhook</ARN>"), &ARN{TargetID{"1", "webhook"}, "us-east-1"}, false},
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

         */
        public static final int HASH_ALGO_SHA512 = 0x1;
    
        private int[] hashAlgos;
        private byte[] salt;
    
    
        /**
         * 
         * @param config
         * @param hashAlgos
         * @param salt
         */
        public PreauthIntegrityNegotiateContext ( Configuration config, int[] hashAlgos, byte[] salt ) {
            this.hashAlgos = hashAlgos;
            this.salt = salt;
        }
    
    
        /**
         * 
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/fscc/FileRenameInformation2.java

            bufferIndex += 4;
            byte[] nameBytes = new byte[nameLen];
            System.arraycopy(buffer, bufferIndex, nameBytes, 0, nameBytes.length);
            bufferIndex += nameLen;
            this.fileName = new String(nameBytes, StandardCharsets.UTF_16LE);
            return bufferIndex - start;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

        private int[] dialects;
        private int capabilities;
        private byte[] clientGuid = new byte[16];
        private int securityMode;
        private NegotiateContextRequest[] negotiateContexts;
        private byte[] preauthSalt;
    
    
        /**
         * @param config
         * @param securityMode
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7.5K bytes
    - Viewed (0)
  5. 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 Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. cmd/hasher.go

    func getSHA256Hash(data []byte) string {
    	return hex.EncodeToString(getSHA256Sum(data))
    }
    
    // getSHA256Hash returns SHA-256 sum of given data.
    func getSHA256Sum(data []byte) []byte {
    	hash := sha256.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 27 13:00:19 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

        private byte oplockLevel;
        private byte openFlags;
        private int createAction;
        private long creationTime;
        private long lastAccessTime;
        private long lastWriteTime;
        private long changeTime;
        private long allocationSize;
        private long endOfFile;
        private int fileAttributes;
        private byte[] fileId = new byte[16];
        private CreateContextResponse[] createContexts;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.6K bytes
    - Viewed (0)
  8. internal/jwt/parser.go

    	jwtgo.StandardClaims
    }
    
    // UnmarshalJSON provides custom JSON unmarshal.
    // This is mainly implemented for speed.
    func (c *StandardClaims) UnmarshalJSON(b []byte) (err error) {
    	return jsonparser.ObjectEach(b, func(key []byte, value []byte, dataType jsonparser.ValueType, _ int) error {
    		if len(key) == 0 {
    			return nil
    		}
    		switch key[0] {
    		case 'a':
    			if string(key) == "accessKey" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java

    import jcifs.smb.NtStatus;
    import jcifs.smb.SmbException;
    
    
    /**
     * @author mbechler
     *
     */
    public class Smb2IoctlResponse extends ServerMessageBlock2Response {
    
        private final byte[] outputBuffer;
        private int ctlCode;
        private byte[] fileId;
        private int ioctlFlags;
        private Decodable outputData;
        private Decodable inputData;
        private int outputLength;
    
    
        /**
         * @param config
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 7.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/net/NetServerEnum2.java

        }
    
    
        @Override
        protected int writeDataWireFormat ( byte[] dst, int dstIndex ) {
            return 0;
        }
    
    
        @Override
        protected int readSetupWireFormat ( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
    
    
        @Override
        protected int readParametersWireFormat ( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4K bytes
    - Viewed (0)
Back to top