Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 808 for encodes (0.89 seconds)

  1. src/main/java/jcifs/util/Encdec.java

        private static final int TIME_1970_MILLIS_64LE = 8;
    
        /**
         *
         */
        private Encdec() {
        }
    
        /*
         * Encode integers
         */
    
        /**
         * Encodes a 16-bit unsigned integer in big-endian byte order.
         *
         * @param s the short value to encode
         * @param dst the destination byte array
         * @param di the starting index in the destination array
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/util/Encdec.java

         * Time encoding type: 1970 epoch, 64-bit milliseconds, little-endian.
         */
        public static final int TIME_1970_MILLIS_64LE = 8;
    
        /* Encode integers
         */
    
        /**
         * Encodes a 16-bit unsigned integer in big-endian byte order.
         *
         * @param s the short value to encode
         * @param dst the destination byte array
         * @param di the starting index in the destination array
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  3. src/main/java/jcifs/util/Strings.java

            return str.getBytes(encoding);
        }
    
        /**
         * Encodes a string into UTF-16LE (Unicode Little Endian) bytes.
         *
         * @param str the string to encode
         * @return the string as bytes (UTF16-LE)
         */
        public static byte[] getUNIBytes(final String str) {
            return getBytes(str, UNI_ENCODING);
        }
    
        /**
         * Encodes a string into ASCII bytes.
         *
         * @param str the string to encode
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  4. internal/bucket/lifecycle/expiration.go

    		return err
    	}
    	if numDays <= 0 {
    		return errLifecycleInvalidDays
    	}
    	*eDays = ExpirationDays(numDays)
    	return nil
    }
    
    // MarshalXML encodes number of days to expire if it is non-zero and
    // encodes empty string otherwise
    func (eDays ExpirationDays) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if eDays == 0 {
    		return nil
    	}
    	return e.EncodeElement(int(eDays), startElement)
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  5. internal/bucket/lifecycle/transition.go

    		return errTransitionDateNotMidnight
    	}
    
    	*tDate = TransitionDate{trnDate}
    	return nil
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (tDate TransitionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if tDate.IsZero() {
    		return nil
    	}
    	return e.EncodeElement(tDate.Format(time.RFC3339), startElement)
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

        /* double */
        /**
         * Encodes a string in NDR format.
         *
         * @param s the string to encode
         */
        public void enc_ndr_string(final String s) {
            align(4);
            int i = index;
            final int len = s.length();
            Encdec.enc_uint32le(len + 1, buf, i);
            i += 4;
            Encdec.enc_uint32le(0, buf, i);
            i += 4;
            Encdec.enc_uint32le(len + 1, buf, i);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            return val;
        }
    
        /**
         * Encodes a short integer (2 bytes) in NDR format.
         *
         * @param s the short integer value to encode
         */
        public void enc_ndr_short(final int s) {
            align(2);
            Encdec.enc_uint16le((short) s, this.buf, this.index);
            advance(2);
        }
    
        /**
         * Decodes a short integer (2 bytes) from NDR format.
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  8. internal/config/lambda/event/targetid.go

    }
    
    // ToARN - converts to ARN.
    func (tid TargetID) ToARN(region string) ARN {
    	return ARN{TargetID: tid, region: region}
    }
    
    // MarshalJSON - encodes to JSON data.
    func (tid TargetID) MarshalJSON() ([]byte, error) {
    	return json.Marshal(tid.String())
    }
    
    // UnmarshalJSON - decodes JSON data.
    func (tid *TargetID) UnmarshalJSON(data []byte) error {
    	var s string
    	if err := json.Unmarshal(data, &s); err != nil {
    		return err
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 1.8K bytes
    - Click Count (0)
  9. cmd/api-datatypes.go

    }
    
    // DeleteMarkerMTime is an embedded type containing time.Time for XML marshal
    type DeleteMarkerMTime struct {
    	time.Time
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (t DeleteMarkerMTime) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if t.IsZero() {
    		return nil
    	}
    	return e.EncodeElement(t.Format(time.RFC3339), startElement)
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 3K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/util/Base64.java

        /**
         * Base-64 encodes the supplied block of data.  Line wrapping is not
         * applied on output.
         *
         * @param bytes The block of data that is to be Base-64 encoded.
         * @return A <code>String</code> containing the encoded data.
         */
        public static String encode(final byte[] bytes) {
            int length = bytes.length;
            if (length == 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.1K bytes
    - Click Count (0)
Back to Top