Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for xxhashv2 (0.15 sec)

  1. src/internal/zstd/xxhash.go

    )
    
    // xxhash64 is the state of a xxHash-64 checksum.
    type xxhash64 struct {
    	len uint64    // total length hashed
    	v   [4]uint64 // accumulators
    	buf [32]byte  // buffer
    	cnt int       // number of bytes in buffer
    }
    
    // reset discards the current state and prepares to compute a new hash.
    // We assume a seed of 0 since that is what zstd uses.
    func (xh *xxhash64) reset() {
    	xh.len = 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. src/internal/zstd/xxhash_test.go

    }{
    	{
    		"hello, world",
    		0xb33a384e6d1b1242,
    	},
    	{
    		"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789$",
    		0x1032d841e824f998,
    	},
    }
    
    func TestXXHash(t *testing.T) {
    	var xh xxhash64
    	for i, test := range xxHashTests {
    		xh.reset()
    		xh.update([]byte(test.data))
    		if got := xh.digest(); got != test.hash {
    			t.Errorf("#%d: got %#x want %#x", i, got, test.hash)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:34:06 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. pkg/util/hash/hash.go

    package hash
    
    import (
    	"encoding/hex"
    
    	"github.com/cespare/xxhash/v2"
    )
    
    type Hash interface {
    	Write(p []byte) (n int)
    	WriteString(s string) (n int)
    	Sum() string
    	Sum64() uint64
    }
    
    type instance struct {
    	hash *xxhash.Digest
    }
    
    var _ Hash = &instance{}
    
    func New() Hash {
    	return &instance{
    		hash: xxhash.New(),
    	}
    }
    
    // Write wraps the Hash.Write function call
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 20:24:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. docs/debugging/inspect/go.sum

    github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
    github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
    github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=
    github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=
    github.com/klauspost/compress v1.17.8 h1:YcnTYrq7MikUT7k0Yb5eceMmALQPYBW/Xltxn0NAMnU=
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 09:27:44 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. docs/debugging/inspect/go.mod

    	github.com/klauspost/filepathx v1.1.1
    	github.com/minio/colorjson v1.0.7
    	github.com/minio/madmin-go/v3 v3.0.52
    	github.com/secure-io/sio-go v0.3.1
    	github.com/tinylib/msgp v1.1.9
    )
    
    require (
    	github.com/cespare/xxhash/v2 v2.3.0 // indirect
    	github.com/fatih/color v1.17.0 // indirect
    	github.com/mattn/go-colorable v0.1.13 // indirect
    	github.com/mattn/go-isatty v0.0.20 // indirect
    	github.com/minio/pkg/v3 v3.0.1 // indirect
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 09:27:44 UTC 2024
    - 668 bytes
    - Viewed (0)
  6. licenses/github.com/klauspost/compress/internal/lz4ref/LICENSE

    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    
    * Neither the name of xxHash nor the names of its
      contributors may be used to endorse or promote products derived from
      this software without specific prior written permission.
    
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 07 01:52:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v1.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"encoding/binary"
    	"encoding/hex"
    	"encoding/json"
    	"fmt"
    	"time"
    
    	"github.com/cespare/xxhash/v2"
    	jsoniter "github.com/json-iterator/go"
    )
    
    // XL constants.
    const (
    	// XL metadata file carries per object metadata.
    	xlStorageFormatFileV1 = "xl.json"
    )
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. cmd/erasure-coding.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/hex"
    	"fmt"
    	"os"
    	"reflect"
    	"sync"
    
    	"github.com/cespare/xxhash/v2"
    	"github.com/klauspost/reedsolomon"
    	"github.com/minio/minio/internal/logger"
    )
    
    // Erasure - erasure encoding details.
    type Erasure struct {
    	encoder                  func() reedsolomon.Encoder
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/go.mod

    	github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
    	github.com/beorn7/perks v1.0.1 // indirect
    	github.com/blang/semver/v4 v4.0.0 // indirect
    	github.com/cenkalti/backoff/v4 v4.2.1 // indirect
    	github.com/cespare/xxhash/v2 v2.2.0 // indirect
    	github.com/coreos/go-semver v0.3.1 // indirect
    	github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
    	github.com/dustin/go-humanize v1.0.1 // indirect
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. internal/grid/msg.go

    	// OpDisconnect instructs that remote wants to disconnect
    	OpDisconnect
    
    	// OpMerged is several operations merged into one.
    	OpMerged
    )
    
    const (
    	// FlagCRCxxh3 indicates that, the lower 32 bits of xxhash3 of the serialized
    	// message will be sent after the serialized message as little endian.
    	FlagCRCxxh3 Flags = 1 << iota
    
    	// FlagEOF the stream (either direction) is at EOF.
    	FlagEOF
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 28 19:22:29 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top