Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 401 for offset_ (0.28 sec)

  1. src/syscall/syscall_linux_arm.go

    }
    
    // Underlying system call writes to newoffset via pointer.
    // Implemented in assembly to avoid allocation.
    func seek(fd int, offset int64, whence int) (newoffset int64, err Errno)
    
    func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
    	newoffset, errno := seek(fd, offset, whence)
    	if errno != 0 {
    		return 0, errno
    	}
    	return newoffset, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. platforms/ide/problems-api/src/main/java/org/gradle/api/problems/internal/OffsetInFileLocation.java

    /**
     * A basic location pointing to a specific part of a file using a global offset and length for coordinates.
     * <p>
     * The coordinates are expected to be zero indexed.
     */
    public interface OffsetInFileLocation extends FileLocation {
    
        /**
         * The global offset from the beginning of the file.
         *
         * @return the zero-indexed the offset
         */
        int getOffset();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:33:01 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. cmd/dummy-data-generator_test.go

    	}
    	return
    }
    
    func (d *DummyDataGen) Seek(offset int64, whence int) (int64, error) {
    	switch whence {
    	case io.SeekStart:
    		if offset < 0 {
    			return 0, errors.New("Invalid offset")
    		}
    		d.idx = offset
    	case io.SeekCurrent:
    		if d.idx+offset < 0 {
    			return 0, errors.New("Invalid offset")
    		}
    		d.idx += offset
    	case io.SeekEnd:
    		if d.length+offset < 0 {
    			return 0, errors.New("Invalid offset")
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractCaseVfsRelativePathTest.groovy

        }
    
        def "length of common prefix of #prefix with #absolutePath at offset #offset is #result"() {
            expect:
            VfsRelativePath.of(absolutePath, offset).lengthOfCommonPrefix(prefix, caseSensitivity) == result
    
            where:
            prefix              | absolutePath            | offset | result
            "hello/world"       | "hello/other"           | 0      | 5
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/lockedfile/transform_test.go

    			time.Sleep(time.Duration(rand.Intn(100)) * time.Microsecond)
    			chunkWords := roundDownToPowerOf2(rand.Intn(maxChunkWords) + 1)
    			offset := rand.Intn(chunkWords)
    
    			err := lockedfile.Transform(path, func(data []byte) (chunk []byte, err error) {
    				chunk = buf[offset*8 : (offset+chunkWords)*8]
    
    				if len(data)&^7 != len(data) {
    					t.Errorf("read %d bytes, but each write is an integer multiple of 8 bytes", len(data))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. testing/performance/src/templates/native-monolithic/src/prebuilt.h

    #ifndef PREBUILT_HEADER_${sourceIdx+offset}_H
    #define PREBUILT_HEADER_${sourceIdx+offset}_H
    
    // TODO: Actually do something in this header
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 188 bytes
    - Viewed (0)
  7. src/debug/dwarf/open.go

    		if len(d.info) < 14 {
    			return nil, DecodeError{"info", Offset(len(d.info)), "too short"}
    		}
    		offset = 12
    	}
    	// Fetch the version, a tiny 16-bit number (1, 2, 3, 4, 5).
    	x, y := d.info[offset], d.info[offset+1]
    	switch {
    	case x == 0 && y == 0:
    		return nil, DecodeError{"info", 4, "unsupported version 0"}
    	case x == 0:
    		d.bigEndian = true
    		d.order = binary.BigEndian
    	case y == 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. testing/performance/src/templates/native-monolithic/src/src.h

    #ifndef PROJECT_HEADER_${sourceIdx}_H
    #define PROJECT_HEADER_${sourceIdx}_H
    
    <% sourceIdx.times { %>
    #include "src${it}_h.h"
    <% } %>
    
    
    <% functionCount.times { %>
    int C_function_${(it+1)+offset} (); 
    int CPP_function_${(it+1)+offset} (); 
    <% } %>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 287 bytes
    - Viewed (0)
  9. src/internal/syscall/windows/reparse_windows.go

    	ReparseDataLength uint16
    	Reserved          uint16
    }
    
    type SymbolicLinkReparseBuffer struct {
    	// The integer that contains the offset, in bytes,
    	// of the substitute name string in the PathBuffer array,
    	// computed as an offset from byte 0 of PathBuffer. Note that
    	// this offset must be divided by 2 to get the array index.
    	SubstituteNameOffset uint16
    	// The integer that contains the length, in bytes, of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 07:15:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go

    //sys	pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
    //sys	pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
    //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
    //sys	Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
    //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top