Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 316 for offsetsof (0.15 sec)

  1. src/internal/coverage/encodemeta/encodefile.go

    	"fmt"
    	"internal/coverage"
    	"internal/coverage/stringtab"
    	"io"
    	"os"
    	"unsafe"
    )
    
    // This package contains APIs and helpers for writing out a meta-data
    // file (composed of a file header, offsets/lengths, and then a series of
    // meta-data blobs emitted by the compiler, one per Go package).
    
    type CoverageMetaFileWriter struct {
    	stab   stringtab.Writer
    	mfname string
    	w      *bufio.Writer
    	tmp    []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:40:42 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/utils.h

      SmallVector<int32_t> offsets;
      if (begin_values.size() == end_values.size()) {
        for (size_t i = 0; i < begin_values.size(); ++i) {
          offsets.push_back(end_values[i] - begin_values[i]);
        }
      }
    
      return mlir::DenseElementsAttr::get(
          RankedTensorType::get({static_cast<int>(offsets.size())},
                                mlir::IntegerType::get(begin.getContext(), 32)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/dirent.go

    		}
    		rec := buf[:reclen]
    		buf = buf[reclen:]
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		if ino == 0 { // File absent in directory.
    			continue
    		}
    		const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
    		namlen, ok := direntNamlen(rec)
    		if !ok || namoff+namlen > uint64(len(rec)) {
    			break
    		}
    		name := rec[namoff : namoff+namlen]
    		for i, c := range name {
    			if c == 0 {
    				name = name[:i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. src/go/token/position.go

    	f.mutex.Lock()
    	lines := f.lines
    	f.mutex.Unlock()
    	return lines
    }
    
    // SetLines sets the line offsets for a file and reports whether it succeeded.
    // The line offsets are the offsets of the first character of each line;
    // for instance for the content "ab\nc\n" the line offsets are {0, 3}.
    // An empty file has an empty line offset table.
    // Each line offset must be larger than the offset for the previous line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  5. src/internal/coverage/defs.go

    //
    // Meta-data definitions:
    //
    // The meta-data file is composed of a file header, a series of
    // meta-data blobs/sections (one per instrumented package), and an offsets
    // area storing the offsets of each section. Format of the meta-data
    // file looks like:
    //
    // --header----------
    //  | magic: [4]byte magic string
    //  | version
    //  | total length of meta-data file in bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. test/fixedbugs/issue6036.go

    // Copyright 2013 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.
    
    // Issue 6036: 6g's backend generates OINDREG with
    // offsets larger than 32-bit.
    
    package main
    
    type T struct {
    	Large [1 << 31]byte
    	A     int
    	B     int
    }
    
    func F(t *T) {
    	t.B = t.A
    }
    
    type T2 [1<<31 + 2]byte
    
    func F2(t *T2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 652 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go

    	//  var _ = 1 + ""
    	InvalidUntypedConversion
    
    	/* offsetof */
    
    	// BadOffsetofSyntax occurs when unsafe.Offsetof is called with an argument
    	// that is not a selector expression.
    	//
    	// Example:
    	//  import "unsafe"
    	//
    	//  var x int
    	//  var _ = unsafe.Offsetof(x)
    	BadOffsetofSyntax
    
    	// InvalidOffsetof occurs when unsafe.Offsetof is called with a method
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 34K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testshared/testdata/global/main.go

    	}
    
    	y := &globallib.Data[1<<20+2]
    	if y != &ptrData()[1<<20+2] {
    		panic("testLargeOffset: address mismatch")
    	}
    }
    
    func main() {
    	testLoop()
    
    	// SSA rules commonly merge offsets into addresses. These
    	// tests access global data in different ways to try
    	// and exercise different SSA rules.
    	testMediumOffset()
    	testLargeOffset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. src/internal/types/errors/codes.go

    	//  var _ = 1 + []int{}
    	InvalidUntypedConversion
    
    	// BadOffsetofSyntax occurs when unsafe.Offsetof is called with an argument
    	// that is not a selector expression.
    	//
    	// Example:
    	//  import "unsafe"
    	//
    	//  var x int
    	//  var _ = unsafe.Offsetof(x)
    	BadOffsetofSyntax
    
    	// InvalidOffsetof occurs when unsafe.Offsetof is called with a method
    	// selector, rather than a field selector, or when the field is embedded via
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:50:48 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  10. src/go/scanner/errors.go

    func (p ErrorList) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
    
    func (p ErrorList) Less(i, j int) bool {
    	e := &p[i].Pos
    	f := &p[j].Pos
    	// Note that it is not sufficient to simply compare file offsets because
    	// the offsets do not reflect modified line information (through //line
    	// comments).
    	if e.Filename != f.Filename {
    		return e.Filename < f.Filename
    	}
    	if e.Line != f.Line {
    		return e.Line < f.Line
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top