Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 148 for writeInt8 (0.14 sec)

  1. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java

            int start = dstIndex;
            SMBUtil.writeInt2(9, dst, dstIndex);
            SMBUtil.writeInt2(this.treeFlags, dst, dstIndex + 2);
            dstIndex += 4;
    
            byte[] data = this.path.getBytes(StandardCharsets.UTF_16LE);
            int offsetOffset = dstIndex;
            SMBUtil.writeInt2(data.length, dst, dstIndex + 2);
            dstIndex += 4;
            SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, offsetOffset);
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  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