Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ChecksumIEEE (0.24 sec)

  1. internal/s3select/genmessage.go

    	binary.Write(buf, binary.BigEndian, uint32(headerLength))
    	prelude := buf.Bytes()
    	binary.Write(buf, binary.BigEndian, crc32.ChecksumIEEE(prelude))
    	buf.Write(header)
    	message := buf.Bytes()
    	binary.Write(buf, binary.BigEndian, crc32.ChecksumIEEE(message))
    
    	fmt.Println(buf.Bytes())
    }
    
    func genProgressHeader() {
    	buf := new(bytes.Buffer)
    
    	buf.WriteByte(13)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  2. docs/debugging/inspect/decrypt-v1.go

    	if err != nil {
    		return err
    	}
    	key, err := hex.DecodeString(keyHex[8:])
    	if err != nil {
    		return err
    	}
    	// Verify that CRC is ok.
    	want := binary.LittleEndian.Uint32(id)
    	got := crc32.ChecksumIEEE(key)
    	if want != got {
    		return fmt.Errorf("Invalid key checksum, want %x, got %x", want, got)
    	}
    
    	stream, err := sio.AES_256_GCM.Stream(key)
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. lib/time/mkzip.go

    		w, err := zw.CreateRaw(&zip.FileHeader{
    			Name:               name,
    			Method:             zip.Store,
    			CompressedSize64:   uint64(len(data)),
    			UncompressedSize64: uint64(len(data)),
    			CRC32:              crc32.ChecksumIEEE(data),
    		})
    		if err != nil {
    			log.Fatal(err)
    		}
    		if _, err := w.Write(data); err != nil {
    			log.Fatal(err)
    		}
    		seen[name] = true
    		return nil
    	})
    	if err != nil {
    		log.Fatal(err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. internal/s3select/message.go

    	binary.Write(buf, binary.BigEndian, uint32(headerLength))
    	prelude := buf.Bytes()
    	binary.Write(buf, binary.BigEndian, crc32.ChecksumIEEE(prelude))
    	buf.Write(header)
    	if payload != nil {
    		buf.Write(payload)
    	}
    	message := buf.Bytes()
    	binary.Write(buf, binary.BigEndian, crc32.ChecksumIEEE(message))
    
    	return buf.Bytes()
    }
    
    // Refer genRecordsHeader().
    var recordsHeader = []byte{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 15.2K bytes
    - Viewed (0)
  5. src/archive/zip/writer_test.go

    			method:  Deflate,
    		},
    	}
    
    	// write a zip file
    	archive := new(bytes.Buffer)
    	w := NewWriter(archive)
    
    	for i := range files {
    		f := &files[i]
    		f.crc32 = crc32.ChecksumIEEE(f.content)
    		size := uint64(len(f.content))
    		f.uncompressedSize = size
    		f.compressedSize = size
    
    		var compressedContent []byte
    		if f.method == Deflate {
    			var buf bytes.Buffer
    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)
  6. cmd/admin-handlers.go

    			// Replace the server prefix/suffix with anonymized ones
    			for idx, lbl := range idxMap {
    				if len(poolsMatch[idx]) > 0 {
    					poolsMatch[idx] = fmt.Sprintf("%s%d", lbl, crc32.ChecksumIEEE([]byte(poolsMatch[idx])))
    				}
    			}
    
    			// Remove the original pools args present at index 0
    			anonPools[pi] = strings.Join(poolsMatch[1:], "")
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  7. api/go1.txt

    pkg hash/crc32, const IEEE ideal-int
    pkg hash/crc32, const Koopman ideal-int
    pkg hash/crc32, const Size ideal-int
    pkg hash/crc32, func Checksum([]uint8, *Table) uint32
    pkg hash/crc32, func ChecksumIEEE([]uint8) uint32
    pkg hash/crc32, func MakeTable(uint32) *Table
    pkg hash/crc32, func New(*Table) hash.Hash32
    pkg hash/crc32, func NewIEEE() hash.Hash32
    pkg hash/crc32, func Update(uint32, *Table, []uint8) uint32
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top