Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestContentHash64 (0.14 sec)

  1. src/cmd/internal/obj/objfile_test.go

    import (
    	"bytes"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"testing"
    	"unsafe"
    
    	"cmd/internal/goobj"
    	"cmd/internal/sys"
    )
    
    var dummyArch = LinkArch{Arch: sys.ArchAMD64}
    
    func TestContentHash64(t *testing.T) {
    	s1 := &LSym{P: []byte("A")}
    	s2 := &LSym{P: []byte("A\x00\x00\x00")}
    	s1.Set(AttrContentAddressable, true)
    	s2.Set(AttrContentAddressable, true)
    	h1 := contentHash64(s1)
    	h2 := contentHash64(s2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:30 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top