Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 300 for encodes (0.15 sec)

  1. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  2. cmd/api-headers.go

    	buf.WriteString(xxml.Header)
    	if err := xxml.NewEncoder(&buf).Encode(response); err != nil {
    		bugLogIf(GlobalContext, err)
    		return nil
    	}
    	return buf.Bytes()
    }
    
    // Encodes the response headers into JSON format.
    func encodeResponseJSON(response any) []byte {
    	var bytesBuffer bytes.Buffer
    	e := json.NewEncoder(&bytesBuffer)
    	e.Encode(response)
    	return bytesBuffer.Bytes()
    }
    
    // Write parts count
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. 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) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. 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)
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. cmd/erasure-encode.go

    	return fmt.Errorf("%w (offline-disks=%d/%d)", writeErr, countErrs(p.errs, errDiskNotFound), len(p.writers))
    }
    
    // Encode reads from the reader, erasure-encodes the data and writes to the writers.
    func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) {
    	writer := &multiWriter{
    		writers:     writers,
    		writeQuorum: quorum,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/ndr/NdrObject.java

         */
        public NdrObject() {
            // Default constructor
        }
    
        /**
         * Encodes this NDR object into the specified buffer
         * @param dst the destination buffer for encoding
         * @throws NdrException if encoding fails
         */
        public abstract void encode(NdrBuffer dst) throws NdrException;
    
        /**
         * Decodes this NDR object from the specified buffer
         * @param src the source buffer for decoding
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/ndr/NdrObject.java

         */
        public NdrObject() {
            // Default constructor
        }
    
        /**
         * Encodes this NDR object into the specified buffer
         * @param dst the destination buffer for encoding
         * @throws NdrException if encoding fails
         */
        public abstract void encode(NdrBuffer dst) throws NdrException;
    
        /**
         * Decodes this NDR object from the specified buffer
         * @param src the source buffer for decoding
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/Encodable.java

         */
        int encode(byte[] dst, int dstIndex);
    
        /**
         * Returns the size in bytes that this object will occupy when encoded.
         *
         * @return the encoded size
         */
        int size();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/av/AvPairs.java

            remove(pairs, rep.getType());
            pairs.add(rep);
        }
    
        /**
         * Encodes a list of AV pairs into byte array format
         *
         * @param pairs the list of AV pairs to encode
         * @return encoded avpairs
         */
        public static byte[] encode(final List<AvPair> pairs) {
            int size = 0;
            for (final AvPair p : pairs) {
                size += 4 + p.getRaw().length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/DocumentUtil.java

            return null;
        }
    
        /**
         * Encodes a URL by encoding non-URL-safe characters.
         * Uses the request's character encoding if available, otherwise defaults to UTF-8.
         * Only encodes characters that are not considered URL-safe according to CharUtil.
         *
         * @param url the URL to encode
         * @return the encoded URL with non-URL-safe characters properly encoded
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.2K bytes
    - Viewed (0)
Back to top