- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for SliceReader (0.17 sec)
-
src/internal/coverage/slicereader/slicereader.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package slicereader import ( "encoding/binary" "fmt" "io" "unsafe" ) // This file contains the helper "SliceReader", a utility for // reading values from a byte slice that may or may not be backed // by a read-only mmap'd region. type Reader struct { b []byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:28 UTC 2023 - 2.5K bytes - Viewed (0) -
src/internal/coverage/stringtab/stringtab.go
} // Reader is a helper for reading a string table previously // serialized by a Writer.Write call. type Reader struct { r *slicereader.Reader strs []string } // NewReader creates a stringtab.Reader to read the contents // of a string table from 'r'. func NewReader(r *slicereader.Reader) *Reader { str := &Reader{ r: r, } return str }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 12:40:42 UTC 2022 - 3.6K bytes - Viewed (0) -
src/internal/coverage/decodemeta/decode.go
// is turned on. import ( "encoding/binary" "fmt" "internal/coverage" "internal/coverage/slicereader" "internal/coverage/stringtab" "io" "os" ) // See comments in the encodecovmeta package for details on the format. type CoverageMetaDataDecoder struct { r *slicereader.Reader hdr coverage.MetaSymbolHeader strtab *stringtab.Reader tmp []byte debug bool }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:28 UTC 2023 - 3.6K bytes - Viewed (0) -
src/internal/coverage/slicereader/slr_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package slicereader import ( "encoding/binary" "io" "testing" ) func TestSliceReader(t *testing.T) { b := []byte{} bt := make([]byte, 4) e32 := uint32(1030507) binary.LittleEndian.PutUint32(bt, e32) b = append(b, bt...) bt = make([]byte, 8)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:28 UTC 2023 - 1.9K bytes - Viewed (0) -
src/internal/coverage/decodecounter/decodecounterfile.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package decodecounter import ( "encoding/binary" "fmt" "internal/coverage" "internal/coverage/slicereader" "internal/coverage/stringtab" "io" "os" "strconv" "unsafe" ) // This file contains helpers for reading counter data files created // during the executions of a coverage-instrumented binary.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 27 15:29:54 UTC 2023 - 9.8K bytes - Viewed (0) -
src/internal/coverage/decodemeta/decodefile.go
// separate self-contained meta-data section for each Go package. import ( "bufio" "crypto/md5" "encoding/binary" "fmt" "internal/coverage" "internal/coverage/slicereader" "internal/coverage/stringtab" "io" "os" ) // CoverageMetaFileReader provides state and methods for reading // a meta-data file from a code coverage run. type CoverageMetaFileReader struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 14 22:30:23 UTC 2023 - 6.8K bytes - Viewed (0) -
src/go/build/deps_test.go
internal/coverage, internal/coverage/uleb128 < internal/coverage/cmerge, internal/coverage/pods, internal/coverage/slicereader, internal/coverage/slicewriter; internal/coverage/slicereader, internal/coverage/slicewriter < internal/coverage/stringtab < internal/coverage/decodecounter, internal/coverage/decodemeta,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0) -
test/fixedbugs/issue19168.go
hdr.Data = uintptr(unsafe.Pointer(p)) return } func f(hdr *reflect2.SliceHeader, p *byte) { hdr.Data = uintptr(unsafe.Pointer(p)) // ERROR "write barrier" } type SliceHeader struct { Data uintptr } func g(hdr *SliceHeader, p *byte) { // No write barrier for lookalike SliceHeader. hdr.Data = uintptr(unsafe.Pointer(p))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 02 17:21:50 UTC 2017 - 1.3K bytes - Viewed (0) -
test/escape_unsafe.go
return unsafe.Pointer(reflect.ValueOf(p).Elem().UnsafeAddr()) } // (6) Conversion of a reflect.SliceHeader or reflect.StringHeader // Data field to or from Pointer. func fromSliceData(s []int) unsafe.Pointer { // ERROR "leaking param: s to result ~r0 level=0$" return unsafe.Pointer((*reflect.SliceHeader)(unsafe.Pointer(&s)).Data) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 17:25:59 UTC 2022 - 2.2K bytes - Viewed (0) -
src/internal/unsafeheader/unsafeheader.go
// are tested to be equivalent to reflect.SliceHeader and reflect.StringHeader. package unsafeheader import ( "unsafe" ) // Slice is the runtime representation of a slice. // It cannot be used safely or portably and its representation may // change in a later release. // // Unlike reflect.SliceHeader, its Data field is sufficient to guarantee the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 16:14:17 UTC 2020 - 1.1K bytes - Viewed (0)