Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 234 for readbyte (0.29 sec)

  1. platforms/native/language-native/src/main/java/org/gradle/language/swift/tasks/internal/SymbolHider.java

            }
    
            public int readByte() {
                return Byte.toUnsignedInt(dataBytes[position++]);
            }
    
            public int readWord() {
                return readByte() | readByte() << 8;
            }
    
            public int readDoubleWord() {
                return readByte() | readByte() << 8 | readByte() << 16 | readByte() << 24;
            }
    
            public byte[] readBytes(int count) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/build_read.go

    func (r *importReader) syntaxError() {
    	if r.err == nil {
    		r.err = errSyntax
    	}
    }
    
    // readByte reads the next byte from the input, saves it in buf, and returns it.
    // If an error occurs, readByte records the error in r.err and returns 0.
    func (r *importReader) readByte() byte {
    	c, err := r.b.ReadByte()
    	if err == nil {
    		r.buf = append(r.buf, c)
    		if c == 0 {
    			err = errNUL
    		}
    	}
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 13K bytes
    - Viewed (0)
  3. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/ObjectInputStreamAdapter.kt

        override fun read(): Int = inputStream.read()
    
        override fun readChar(): Char = readContext.readInt().toChar()
    
        override fun readUnsignedByte(): Int = readByte().let {
            require(it >= 0)
            it.toInt()
        }
    
        override fun readByte(): Byte = readContext.readByte()
    
        override fun readUnsignedShort(): Int = readShort().let {
            require(it >= 0)
            it.toInt()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

                decoder.readBytes(buffer)
                assert buffer == [1, 2] as byte[]
                decoder.skipBytes(2)
                assert decoder.readByte() == 5 as byte
                assert decoder.readByte() == 6 as byte
                decoder.skipBytes(2000)
                decoder.skipBytes(2096)
                assert decoder.readByte() == 7 as byte
                assert decoder.readByte() == 8 as byte
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/ByteOutputTest.groovy

            file.length() == 5
            file.seek(0)
            file.readInt() == 123
            file.readByte() == 12
    
            when:
            stream = output.start(5)
            stream.writeInt(321)
            output.done()
    
            then:
            file.length() == 9
            file.seek(0)
            file.readInt() == 123
            file.readByte() == 12
            file.readInt() == 321
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/imports/read.go

    func (r *importReader) syntaxError() {
    	if r.err == nil {
    		r.err = errSyntax
    	}
    }
    
    // readByte reads the next byte from the input, saves it in buf, and returns it.
    // If an error occurs, readByte records the error in r.err and returns 0.
    func (r *importReader) readByte() byte {
    	c, err := r.b.ReadByte()
    	if err == nil {
    		r.buf = append(r.buf, c)
    		if c == 0 {
    			err = errNUL
    		}
    	}
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 15 18:42:11 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/SocksProxy.kt

        // Read the command.
        val version = fromSource.readByte() and 0xff
        if (version != VERSION_5) throw ProtocolException("unexpected version: $version")
    
        val command = fromSource.readByte() and 0xff
    
        val reserved = fromSource.readByte() and 0xff
        if (reserved != 0) throw ProtocolException("unexpected reserved: $reserved")
    
        val addressType = fromSource.readByte() and 0xff
        val toAddress =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. src/cmd/dist/imports.go

    func (r *importReader) syntaxError() {
    	if r.err == nil {
    		r.err = errSyntax
    	}
    }
    
    // readByte reads the next byte from the input, saves it in buf, and returns it.
    // If an error occurs, readByte records the error in r.err and returns 0.
    func (r *importReader) readByte() byte {
    	c, err := r.b.ReadByte()
    	if err == nil {
    		r.buf = append(r.buf, c)
    		if c == 0 {
    			err = errNUL
    		}
    	}
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 21:45:30 UTC 2019
    - 6.3K bytes
    - Viewed (0)
  9. src/strings/reader.go

    	if n < len(b) {
    		err = io.EOF
    	}
    	return
    }
    
    // ReadByte implements the [io.ByteReader] interface.
    func (r *Reader) ReadByte() (byte, error) {
    	r.prevRune = -1
    	if r.i >= int64(len(r.s)) {
    		return 0, io.EOF
    	}
    	b := r.s[r.i]
    	r.i++
    	return b, nil
    }
    
    // UnreadByte implements the [io.ByteScanner] interface.
    func (r *Reader) UnreadByte() error {
    	if r.i <= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:10:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerWithCrossVersionProtocolTest.groovy

            lockFile.withDataInputStream { str ->
                // state version + dirty flag
                assert str.readByte() == 1
                assert str.readBoolean() != dirty
                // info version + port, lock-id, pid, operation-name
                assert str.readByte() == 3
                assert str.readInt() == 34
                assert str.readLong() == 678L
                assert str.readUTF() == processIdentifier
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:52:52 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top