Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 371 for lseek (0.05 sec)

  1. src/internal/coverage/encodecounter/encode.go

    }
    
    func (cfw *CoverageDataWriter) patchSegmentHeader(ws *slicewriter.WriteSeeker) error {
    	// record position
    	off, err := ws.Seek(0, io.SeekCurrent)
    	if err != nil {
    		return fmt.Errorf("error seeking in patchSegmentHeader: %v", err)
    	}
    	// seek back to start so that we can update the segment header
    	if _, err := ws.Seek(0, io.SeekStart); err != nil {
    		return fmt.Errorf("error seeking in patchSegmentHeader: %v", err)
    	}
    	if cfw.debug {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go

    //go:build arm && gc && linux
    
    package unix
    
    import "syscall"
    
    // Underlying system call writes to newoffset via pointer.
    // Implemented in assembly to avoid allocation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 411 bytes
    - Viewed (0)
  3. src/syscall/syscall_openbsd1.go

    // license that can be found in the LICENSE file.
    
    //go:build openbsd && mips64
    
    package syscall
    
    //sys	readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
    //sys	Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
    //sys	getcwd(buf []byte) (n int, err error) = SYS___GETCWD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 534 bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build linux && gccgo && arm
    
    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
    	var newoffset int64
    	offsetLow := uint32(offset & 0xffffffff)
    	offsetHigh := uint32((offset >> 32) & 0xffffffff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 596 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go

    	}
    	return
    }
    
    func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
    	var newoffset int64
    	offsetLow := uint32(offset & 0xffffffff)
    	offsetHigh := uint32((offset >> 32) & 0xffffffff)
    	_, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
    	return newoffset, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. 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)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

          sinkBuffer.write(maskKey)
    
          if (length > 0) {
            val payloadStart = sinkBuffer.size
            sinkBuffer.write(payload)
    
            sinkBuffer.readAndWriteUnsafe(maskCursor!!)
            maskCursor.seek(payloadStart)
            toggleMask(maskCursor, maskKey)
            maskCursor.close()
          }
        } else {
          sinkBuffer.writeByte(b1)
          sinkBuffer.write(payload)
        }
    
        sink.flush()
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. src/debug/dwarf/typeunit.go

    	return t, nil
    }
    
    // typeUnitReader is a typeReader for a tagTypeUnit.
    type typeUnitReader struct {
    	d   *Data
    	tu  *typeUnit
    	b   buf
    	err error
    }
    
    // Seek to a new position in the type unit.
    func (tur *typeUnitReader) Seek(off Offset) {
    	tur.err = nil
    	doff := off - tur.tu.off
    	if doff < 0 || doff >= Offset(len(tur.tu.data)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/syscall/asm_plan9_amd64.s

    	MOVSQ
    	MOVSQ
    	SYSCALL
    	MOVQ	AX, r1+56(FP)
    	MOVQ	AX, r2+64(FP)
    	MOVQ	AX, err+72(FP)
    	RET
    
    #define SYS_SEEK 39	/* from zsysnum_plan9.go */
    
    //func seek(placeholder uintptr, fd int, offset int64, whence int) (newoffset int64, err string)
    TEXT ยทseek(SB),NOSPLIT,$48-56
    	NO_LOCAL_POINTERS
    	LEAQ	newoffset+32(FP), AX
    	MOVQ	AX, placeholder+0(FP)
    
    	// copy args down
    	LEAQ	placeholder+0(FP), SI
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 01:29:17 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  10. tensorflow/c/checkpoint_reader.cc

      CHECK(v2_reader_ != nullptr);
      CHECK(v2_reader_->status().ok());
    
      // First pass: filters out the entries of the slices.
      std::unordered_set<string> filtered_keys;
      BundleEntryProto entry;
      v2_reader_->Seek(kHeaderEntryKey);
      for (v2_reader_->Next(); v2_reader_->Valid(); v2_reader_->Next()) {
        CHECK(entry.ParseFromArray(v2_reader_->value().data(),
                                   v2_reader_->value().size()))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 21:29:12 UTC 2023
    - 5.5K bytes
    - Viewed (0)
Back to top