Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 223 for writeInt8 (0.69 sec)

  1. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/ByteOutputTest.groovy

            when:
            def stream = output.start(0)
            stream.writeInt(123)
            stream.writeByte(12)
            output.done()
    
            then:
            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
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. internal/dsync/lock-args_gen.go

    func (z LockResp) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 2
    	// write "Code"
    	err = en.Append(0x82, 0xa4, 0x43, 0x6f, 0x64, 0x65)
    	if err != nil {
    		return
    	}
    	err = en.WriteUint8(uint8(z.Code))
    	if err != nil {
    		err = msgp.WrapError(err, "Code")
    		return
    	}
    	// write "Err"
    	err = en.Append(0xa3, 0x45, 0x72, 0x72)
    	if err != nil {
    		return
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  3. src/cmd/internal/goobj/funcinfo.go

    }
    
    func (a *FuncInfo) Write(w *bytes.Buffer) {
    	writeUint8 := func(x uint8) {
    		w.WriteByte(x)
    	}
    	var b [4]byte
    	writeUint32 := func(x uint32) {
    		binary.LittleEndian.PutUint32(b[:], x)
    		w.Write(b[:])
    	}
    
    	writeUint32(a.Args)
    	writeUint32(a.Locals)
    	writeUint8(uint8(a.FuncID))
    	writeUint8(uint8(a.FuncFlag))
    	writeUint8(0) // pad to uint32 boundary
    	writeUint8(0)
    	writeUint32(uint32(a.StartLine))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:28:46 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/StringDeduplicatingKryoBackedEncoder.java

        @Override
        public void writeSmallLong(long value) {
            output.writeLong(value, true);
        }
    
        @Override
        public void writeInt(int value) {
            output.writeInt(value);
        }
    
        @Override
        public void writeSmallInt(int value) {
            output.writeInt(value, true);
        }
    
        @Override
        public void writeShort(short value) throws IOException {
            output.writeShort(value);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/NetShareEnum.java

            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
    
            writeInt2( NET_SHARE_ENUM, dst, dstIndex );
            dstIndex += 2;
            System.arraycopy( descr, 0, dst, dstIndex, descr.length );
            dstIndex += descr.length;
            writeInt2( 0x0001, dst, dstIndex );
            dstIndex += 2;
            writeInt2( maxDataCount, dst, dstIndex );
            dstIndex += 2;
    
            return dstIndex - start;
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/net/NetShareEnum.java

                return 0;
            }
    
            SMBUtil.writeInt2(NET_SHARE_ENUM, dst, dstIndex);
            dstIndex += 2;
            System.arraycopy(descr, 0, dst, dstIndex, descr.length);
            dstIndex += descr.length;
            SMBUtil.writeInt2(0x0001, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.maxDataCount, dst, dstIndex);
            dstIndex += 2;
    
            return dstIndex - start;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/ntlmssp/av/AvPairs.java

                byte[] raw = p.getRaw();
                SMBUtil.writeInt2(p.getType(), enc, pos);
                SMBUtil.writeInt2(raw.length, enc, pos + 2);
                System.arraycopy(raw, 0, enc, pos + 4, raw.length);
                pos += 4 + raw.length;
            }
    
            // MsvAvEOL
            SMBUtil.writeInt2(AvPair.MsvAvEOL, enc, pos);
            SMBUtil.writeInt2(0, enc, pos + 2);
            pos += 4;
            return enc;
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          frameHeader(
            streamId = 0,
            length = 8,
            type = TYPE_PING,
            flags = if (ack) FLAG_ACK else FLAG_NONE,
          )
          sink.writeInt(payload1)
          sink.writeInt(payload2)
          sink.flush()
        }
      }
    
      /**
       * Tell the peer to stop creating streams and that we last processed `lastGoodStreamId`, or zero
       * if no streams were processed.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/ByteInputTest.groovy

        }
    
        def cleanup() {
            file.close()
        }
    
        def "can reuse to read from multiple locations in file"() {
            given:
            file.seek(0)
            file.writeInt(123)
            file.writeInt(321)
            file.writeInt(456)
    
            expect:
            def stream = input.start(0)
            stream.readInt() == 123
            stream.readInt() == 321
            input.done()
    
            def stream2 = input.start(4)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/RecordingObjectOutputStream.kt

        }
    
        override fun defaultWriteObject() = record {
            beanStateWriterFor(beanType).run {
                writeStateOf(bean)
            }
        }
    
        override fun writeInt(`val`: Int) = record {
            writeInt(`val`)
        }
    
        override fun writeUTF(str: String) = record {
            writeString(str)
        }
    
        override fun writeObjectOverride(obj: Any?) = record {
            write(obj)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top