- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for dstPfx (0.19 sec)
-
tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h
#include <sys/stat.h> namespace tf_posix_filesystem { // Transfers up to `size` bytes from `dst_fd` to `src_fd`. // // This method uses `sendfile` if available (i.e., linux 2.6.33 or later) or an // intermediate buffer if not. // // Returns number of bytes transferred or -1 on failure. int CopyFileContents(int dst_fd, int src_fd, off_t size); } // namespace tf_posix_filesystem
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Nov 22 21:23:55 UTC 2019 - 1.2K bytes - Viewed (0) -
src/os/writeto_linux_test.go
poll.TestHookDidSendFile = orig }) poll.TestHookDidSendFile = func(dstFD *poll.FD, src int, written int64, err error, handled bool) { h.called = true h.dstfd = dstFD.Sysfd h.srcfd = src h.written = written h.err = err h.handled = handled } return h } type sendFileHook struct { called bool dstfd int srcfd int written int64 handled bool err error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 4K bytes - Viewed (0) -
src/image/png/reader.go
var ( srcPix []uint8 dstPix []uint8 stride int rect image.Rectangle bytesPerPixel int ) switch target := dst.(type) { case *image.Alpha: srcPix = src.(*image.Alpha).Pix dstPix, stride, rect = target.Pix, target.Stride, target.Rect bytesPerPixel = 1 case *image.Alpha16: srcPix = src.(*image.Alpha16).Pix
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 26K bytes - Viewed (0) -
src/internal/poll/sendfile.go
// Copyright 2024 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 poll
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 268 bytes - Viewed (0) -
src/net/splice_linux_test.go
var hookFd int switch fdType { case "src": hookFd = hook.srcfd case "dst": hookFd = hook.dstfd default: t.Fatalf("unknown fdType %q", fdType) } if err := rc.Control(func(fd uintptr) { if hook.called && hookFd != int(fd) { t.Fatalf("wrong %s file descriptor: got %d, want %d", fdType, hook.dstfd, int(fd)) } }); err != nil { t.Fatalf("syscall.RawConn.Control error: %v", err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 14.5K bytes - Viewed (0) -
src/net/sendfile_test.go
}() var ( called bool gotHandled bool gotFD *poll.FD ) poll.TestHookDidSendFile = func(dstFD *poll.FD, src int, written int64, err error, handled bool) { if called { t.Error("internal/poll.SendFile called multiple times, want one call") } called = true gotHandled = handled gotFD = dstFD } f() if !called { t.Error("internal/poll.SendFile was not called, want it to be") return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 12.1K bytes - Viewed (0) -
src/image/jpeg/writer.go
// dst block. func scale(dst *block, src *[4]block) { for i := 0; i < 4; i++ { dstOff := (i&2)<<4 | (i&1)<<2 for y := 0; y < 4; y++ { for x := 0; x < 4; x++ { j := 16*y + 2*x sum := src[i][j] + src[i][j+1] + src[i][j+8] + src[i][j+9] dst[8*y+x+dstOff] = (sum + 2) >> 2 } } } } // sosHeaderY is the SOS marker "\xff\xda" followed by 8 bytes:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 17.1K bytes - Viewed (0) -
src/image/draw/draw.go
} d0 += ddelta s0 += sdelta } } // drawCopySrc copies bytes to dstPix from srcPix. These arguments roughly // correspond to the Pix fields of the image package's concrete image.Image // implementations, but are offset (dstPix is dst.Pix[dpOffset:] not dst.Pix). func drawCopySrc( dstPix []byte, dstStride int, r image.Rectangle, srcPix []byte, srcStride int, sp image.Point, bytesPerRow int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 33.9K bytes - Viewed (0) -
src/runtime/mbitmap.go
break } dstx := (*uintptr)(unsafe.Pointer(addr)) p := buf.get1() p[0] = *dstx } } else { for { var addr uintptr if tp, addr = tp.next(dst + size); addr == 0 { break } dstx := (*uintptr)(unsafe.Pointer(addr)) srcx := (*uintptr)(unsafe.Pointer(src + (addr - dst))) p := buf.get2() p[0] = *dstx p[1] = *srcx } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 60K bytes - Viewed (0) -
pilot/pkg/networking/util/util.go
var err error // get an object of type used by this message dstX, err := dst.UnmarshalNew() if err != nil { return nil, err } // get an object of type used by this message srcX, err := src.UnmarshalNew() if err != nil { return nil, err } // Merge the two typed protos merge.Merge(dstX, srcX) // Convert the merged proto back to dst
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 28.5K bytes - Viewed (0)