Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for notes (0.12 sec)

  1. docs/debugging/hash-set/main.go

    	return int(sum64 % uint64(cardinality))
    }
    
    // hashOrder - hashes input key to return consistent
    // hashed integer slice. Returned integer order is salted
    // with an input key. This results in consistent order.
    // NOTE: collisions are fine, we are not looking for uniqueness
    // in the slices returned.
    func hashOrder(key string, cardinality int) []int {
    	if cardinality <= 0 {
    		// Returns an empty int slice for cardinality < 0.
    		return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  2. docs/debugging/xl-meta/main.go

    			return err
    		}
    	}
    	return nil
    }
    
    type xlMetaV2VersionHeaderV2 struct {
    	VersionID [16]byte
    	ModTime   int64
    	Signature [4]byte
    	Type      uint8
    	Flags     uint8
    	EcM, EcN  uint8 // Note that these will be 0/0 for non-v2 objects and older xl.meta
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *xlMetaV2VersionHeaderV2) UnmarshalMsg(bts []byte, hdrVer uint) (o []byte, err error) {
    	var zb0001 uint32
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
Back to top