Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,551 for byte1 (0.1 sec)

  1. guava/src/com/google/common/base/Utf8.java

            }
            int byte2 = bytes[index++];
            if (byte2 > (byte) 0xBF
                // Overlong? 5 most significant bits must not all be zero.
                || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0)
                // Check for illegal surrogate codepoints.
                || (byte1 == (byte) 0xED && (byte) 0xA0 <= byte2)
                // Third byte trailing-byte test.
                || bytes[index++] > (byte) 0xBF) {
              return false;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 10 14:11:51 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Utf8.java

            }
            int byte2 = bytes[index++];
            if (byte2 > (byte) 0xBF
                // Overlong? 5 most significant bits must not all be zero.
                || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0)
                // Check for illegal surrogate codepoints.
                || (byte1 == (byte) 0xED && (byte) 0xA0 <= byte2)
                // Third byte trailing-byte test.
                || bytes[index++] > (byte) 0xBF) {
              return false;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 10 14:11:51 UTC 2023
    - 7K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/stream/EncodedStream.java

                int byte1 = delegate.read();
                if (byte1 < 0) {
                    return -1;
                }
                int byte2 = delegate.read();
                if (byte2 < 0) {
                    throw new IOException("Unable to decode, expected 2 bytes but received only 1 byte. It seems the stream was not encoded correctly.");
                }
                return (hexToByte(byte1) << 4) | hexToByte(byte2);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/PomDomParser.java

                // maybe we could use a FilterReader instead of a FilterInputStream?
                int byte1 = this.in.read();
                int byte2 = this.in.read();
                int byte3 = this.in.read();
    
                if (byte1 == 239 && byte2 == 187 && byte3 == 191) {
                    // skip the UTF-8 BOM
                    this.in.mark(MARK);
                } else {
                    this.in.reset();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go

    limitations under the License.
    */
    
    package sets
    
    // Byte is a set of bytes, implemented via map[byte]struct{} for minimal memory consumption.
    //
    // Deprecated: use generic Set instead.
    // new ways:
    // s1 := Set[byte]{}
    // s2 := New[byte]()
    type Byte map[byte]Empty
    
    // NewByte creates a Byte from a list of values.
    func NewByte(items ...byte) Byte {
    	return Byte(New[byte](items...))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  6. src/runtime/memclr_ppc64x.s

    	ANDCC $7, R3, R15
    	BEQ   zero512xsetup // at least 8 byte aligned
    
    	// zero bytes up to 8 byte alignment
    
    	ANDCC $1, R3, R15 // check for byte alignment
    	BEQ   byte2
    	MOVB  R0, 0(R3)   // zero 1 byte
    	ADD   $1, R3      // bump ptr by 1
    	ADD   $-1, R4
    
    byte2:
    	ANDCC $2, R3, R15 // check for 2 byte alignment
    	BEQ   byte4
    	MOVH  R0, 0(R3)   // zero 2 bytes
    	ADD   $2, R3      // bump ptr by 2
    	ADD   $-2, R4
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 17:08:59 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

            def text1 = "some text"
            def bytes1 = text1.bytes
            def text2 = "more"
            def bytes2 = text2.bytes
    
            when:
            async {
                start {
                    def buffer = new byte[1024]
    
                    def nread = stream.read(buffer)
                    assert nread == bytes1.length
                    assert new String(buffer, 0, nread) == text1
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/net/http/internal/chunked_test.go

    	w.Write(a)
    	w.Write(b)
    	w.Write(c)
    	w.Close()
    
    	readBuf := make([]byte, len(a)+len(b)+len(c)+1)
    	byter := bytes.NewReader(buf.Bytes())
    	bufr := bufio.NewReader(byter)
    	mallocs := testing.AllocsPerRun(100, func() {
    		byter.Seek(0, io.SeekStart)
    		bufr.Reset(byter)
    		r := NewChunkedReader(bufr)
    		n, err := io.ReadFull(r, readBuf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 20:45:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. releasenotes/notes/istiod-config-size-bytes.yaml

    Brian Avery <******@****.***> 1620951743 -0400
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 14 00:22:23 UTC 2021
    - 208 bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

        // Write the tagClass, tag, and constructed bit. This takes 1 byte if tag is less than 31.
        if (tag < 31) {
          val byte0 = tagClass or constructedBit or tag.toInt()
          sink.writeByte(byte0)
        } else {
          val byte0 = tagClass or constructedBit or 0b0001_1111
          sink.writeByte(byte0)
          writeVariableLengthLong(tag)
        }
    
        // Write the length. This takes 1 byte if length is less than 128.
        val length = content.size
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top