Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for PutUint32 (0.17 sec)

  1. src/archive/zip/writer_test.go

    		UncompressedSize64: 5678,
    	}); err != nil {
    		t.Fatal(err)
    	}
    	if err := w.Close(); err != nil {
    		t.Fatal(err)
    	}
    	b := buf.Bytes()
    
    	var sig [4]byte
    	binary.LittleEndian.PutUint32(sig[:], uint32(fileHeaderSignature))
    
    	idx := bytes.Index(b, sig[:])
    	if idx == -1 {
    		t.Fatal("file header not found")
    	}
    	b = b[idx:]
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    	if err != ErrFormat {
    		t.Errorf("zeroes: error=%v, want %v", err, ErrFormat)
    	}
    
    	// repeated directoryEndSignatures
    	sig := make([]byte, 4)
    	binary.LittleEndian.PutUint32(sig, directoryEndSignature)
    	for i := 0; i < size-4; i += 4 {
    		copy(b[i:i+4], sig)
    	}
    	_, err = NewReader(bytes.NewReader(b), size)
    	if err != ErrFormat {
    		t.Errorf("sigs: error=%v, want %v", err, ErrFormat)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. src/archive/zip/writer.go

    	(*b)[0] = v
    	*b = (*b)[1:]
    }
    
    func (b *writeBuf) uint16(v uint16) {
    	binary.LittleEndian.PutUint16(*b, v)
    	*b = (*b)[2:]
    }
    
    func (b *writeBuf) uint32(v uint32) {
    	binary.LittleEndian.PutUint32(*b, v)
    	*b = (*b)[4:]
    }
    
    func (b *writeBuf) uint64(v uint64) {
    	binary.LittleEndian.PutUint64(*b, v)
    	*b = (*b)[8:]
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg encoding/binary, func Write(io.Writer, ByteOrder, interface{}) error
    pkg encoding/binary, type ByteOrder interface { PutUint16, PutUint32, PutUint64, String, Uint16, Uint32, Uint64 }
    pkg encoding/binary, type ByteOrder interface, PutUint16([]uint8, uint16)
    pkg encoding/binary, type ByteOrder interface, PutUint32([]uint8, uint32)
    pkg encoding/binary, type ByteOrder interface, PutUint64([]uint8, uint64)
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
Back to top