Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for offcut (0.22 sec)

  1. misc/wasm/wasm_exec.js

    			let offset = 4096;
    
    			const strPtr = (str) => {
    				const ptr = offset;
    				const bytes = encoder.encode(str + "\0");
    				new Uint8Array(this.mem.buffer, offset, bytes.length).set(bytes);
    				offset += bytes.length;
    				if (offset % 8 !== 0) {
    					offset += 8 - (offset % 8);
    				}
    				return ptr;
    			};
    
    			const argc = this.argv.length;
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  2. src/cmd/cgo/ast.go

    					// Replace "C" with _ "unsafe", to keep program valid.
    					// (Deleting import statement or clause is not safe if it is followed
    					// in the source by an explicit semicolon.)
    					f.Edit.Replace(f.offset(s.Path.Pos()), f.offset(s.Path.End()), `_ "unsafe"`)
    				}
    			}
    		}
    	}
    
    	// Accumulate pointers to uses of C.x.
    	if f.Ref == nil {
    		f.Ref = make([]*Ref, 0, 8)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  3. src/bytes/buffer_test.go

    	tmp := make([]byte, 5)
    	for i := 0; i <= 5; i++ {
    		for j := i; j <= 5; j++ {
    			for k := 0; k <= 6; k++ {
    				// 0 <= i <= j <= 5; 0 <= k <= 6
    				// Check that if we start with a buffer
    				// of length j at offset i and ask for
    				// Next(k), we get the right bytes.
    				buf := NewBuffer(b[0:j])
    				n, _ := buf.Read(tmp[0:i])
    				if n != i {
    					t.Fatalf("Read %d returned %d", i, n)
    				}
    				bb := buf.Next(k)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. src/archive/zip/reader_test.go

    			t.Fatalf("NewReader panicked: %s", r)
    		}
    	}()
    	// Previously, this would trigger a panic as we attempt to read from
    	// an io.SectionReader which would access a slice at a negative offset
    	// as the section reader offset & size were < 0.
    	NewReader(bytes.NewReader(data), int64(len(data))+1875)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  5. api/go1.5.txt

    pkg encoding/json, method (Delim) String() string
    pkg encoding/json, type Delim int32
    pkg encoding/json, type Token interface {}
    pkg encoding/json, type UnmarshalTypeError struct, Offset int64
    pkg flag, func UnquoteUsage(*Flag) (string, string)
    pkg go/ast, type EmptyStmt struct, Implicit bool
    pkg go/build, type Package struct, PkgTargetRoot string
    pkg go/constant, const Bool = 1
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/amd64enc_extra.s

    	// Test that VPERMPD that shares ytab list with VPERMQ continues to work too.
    	VPERMPD $-40, Y7, Y7 // c4e3fd01ffd8
    	VPERMPD $216, Y7, Y7 // c4e3fd01ffd8
    	// Check that LEAL is permitted to use overflowing offset.
    	LEAL 2400959708(BP)(R10*1), BP // 428dac15dcbc1b8f
    	LEAL 3395469782(AX)(R10*1), AX // 428d8410d6c162ca
    	// Make sure MOV CR/DR continues to work after changing its movtabs.
    	MOVQ CR0, AX // 0f20c0
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 11 18:32:50 GMT 2023
    - 57.6K bytes
    - Viewed (0)
  7. doc/go1.17_spec.html

    Redeclaration does not introduce a new variable; it just assigns a new value to the original.
    </p>
    
    <pre>
    field1, offset := nextField(str, 0)
    field2, offset := nextField(str, offset)  // redeclares offset
    a, a := 1, 2                              // illegal: double declaration of a or no new variable if a was declared elsewhere
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  8. api/go1.3.txt

    pkg debug/macho, type FatArchHeader struct
    pkg debug/macho, type FatArchHeader struct, Align uint32
    pkg debug/macho, type FatArchHeader struct, Cpu Cpu
    pkg debug/macho, type FatArchHeader struct, Offset uint32
    pkg debug/macho, type FatArchHeader struct, Size uint32
    pkg debug/macho, type FatArchHeader struct, SubCpu uint32
    pkg debug/macho, type FatFile struct
    pkg debug/macho, type FatFile struct, Arches []FatArch
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/amd64error.s

    	// Check offset overflow. Must fit in int32.
    	MOVQ 2147483647+1(AX), AX       // ERROR "offset too large"
    	MOVQ 3395469782(R10), R8        // ERROR "offset too large"
    	LEAQ 3395469782(AX), AX         // ERROR "offset too large"
    	ADDQ 3395469782(AX), AX         // ERROR "offset too large"
    	ADDL 3395469782(AX), AX         // ERROR "offset too large"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 14 00:03:57 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  10. src/bytes/reader.go

    	return nil
    }
    
    // Seek implements the [io.Seeker] interface.
    func (r *Reader) Seek(offset int64, whence int) (int64, error) {
    	r.prevRune = -1
    	var abs int64
    	switch whence {
    	case io.SeekStart:
    		abs = offset
    	case io.SeekCurrent:
    		abs = r.i + offset
    	case io.SeekEnd:
    		abs = int64(len(r.s)) + offset
    	default:
    		return 0, errors.New("bytes.Reader.Seek: invalid whence")
    	}
    	if abs < 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
Back to top