- Sort Score
- Result 10 results
- Languages All
Results 311 - 320 of 361 for buf (0.04 sec)
-
tensorflow/c/eager/c_api.cc
// the device? TF_ManagedBuffer* buf = new TF_ManagedBuffer(data, len, deallocator, deallocator_arg, /*owns_memory=*/false); tensorflow::Tensor t(static_cast<tensorflow::DataType>(dtype), tensorflow::TensorShape(dimvec), buf); buf->Unref(); return tensorflow::wrap(tensorflow::TensorHandle::CreateLocalHandle(
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 43.9K bytes - Viewed (0) -
cmd/storage-datatypes.go
type RenameDataInlineHandlerParams struct { RenameDataHandlerParams `msg:"p"` } func newRenameDataInlineHandlerParams() *RenameDataInlineHandlerParams { buf := grid.GetByteBufferCap(32 + 16<<10) return &RenameDataInlineHandlerParams{RenameDataHandlerParams{FI: FileInfo{Data: buf[:0]}}} } // Recycle will reuse the memory allocated for the FileInfo data. func (r *RenameDataInlineHandlerParams) Recycle() { if r == nil { return
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 17.3K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
// gap->num => "num" gap->gap => "" StringBuilder buf = new StringBuilder(39); boolean lastWasNumber = false; for (int i = 0; i < hextets.length; i++) { boolean thisIsNumber = hextets[i] >= 0; if (thisIsNumber) { if (lastWasNumber) { buf.append(':'); } buf.append(Integer.toHexString(hextets[i])); } else {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 47.1K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver.go
func readProto[T any, PT interface { proto.Message *T }](c *net.UnixConn, timeout time.Duration, oob []byte) (PT, int, error) { var buf [1024]byte err := c.SetReadDeadline(time.Now().Add(timeout)) if err != nil { return nil, 0, err } n, oobn, flags, _, err := c.ReadMsgUnix(buf[:], oob) if err != nil { return nil, 0, err } if flags&unix.MSG_TRUNC != 0 { return nil, 0, fmt.Errorf("truncated message")
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 29 16:08:35 UTC 2024 - 13.2K bytes - Viewed (0) -
internal/dsync/dsync-server_test.go
lockServers = make([]*lockServer, numberOfNodes) ) func getLockArgs(r *http.Request) (args LockArgs, err error) { buf, err := io.ReadAll(r.Body) if err != nil { return args, err } _, err = args.UnmarshalMsg(buf) return args, err } type lockServerHandler struct { lsrv *lockServer } func (lh *lockServerHandler) writeErrorResponse(w http.ResponseWriter, err error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jan 23 16:46:37 UTC 2023 - 8.3K bytes - Viewed (0) -
cmd/erasure-object.go
// Read `xl.meta` in parallel across disks. for index := range rawFileInfos { rf := rawFileInfos[index] if rf.Buf == nil { continue } if !readData { // Save the buffer so we can reuse it. v2bufs[index] = rf.Buf } var xl xlMetaV2 if err := xl.LoadOrConvert(rf.Buf); err != nil { errs[index] = err continue } metadataArray[index] = &xl
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 78.8K bytes - Viewed (0) -
internal/grid/connection.go
lastSetDeadline = now } _, err := buf.WriteTo(conn) if err != nil { if !xnet.IsNetworkOrHostDown(err, true) { gridLogIf(ctx, fmt.Errorf("ws write: %w", err)) } return false } if buf.Cap() > writeBufferSize*4 { // Reset buffer if it gets too big, so we don't keep it around. buf = bytes.Buffer{} } buf.Reset() return true } for {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 46.7K bytes - Viewed (0) -
cmd/metacache-stream_test.go
if gotObj.name != want { t.Errorf("entry %d, want %q, got %q", i, want, gotObj.name) } } } func Test_newMetacacheStream(t *testing.T) { r := loadMetacacheSample(t) var buf bytes.Buffer w := newMetacacheWriter(&buf, 1<<20) defer w.Close() err := r.readFn(func(object metaCacheEntry) bool { err := w.write(object) if err != nil { t.Fatal(err) } return true }) r.Close()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 15K bytes - Viewed (0) -
src/cmd/cgo/ast.go
if star, ok := unparen(t).(*ast.StarExpr); ok { t = star.X } if sel, ok := unparen(t).(*ast.SelectorExpr); ok { var buf strings.Builder format.Node(&buf, fset, recvType) error_(sel.Pos(), `cannot define new methods on non-local type %s`, &buf) } } } } } if !sawC { error_(ast1.Package, `cannot find import "C"`) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Oct 14 15:47:06 UTC 2024 - 14.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java
this.txn_buf = buffer; } /** * @return the txn_buf */ public byte[] releaseBuffer () { byte[] buf = this.txn_buf; this.txn_buf = null; return buf; } /** * @return the subCommand */ public final byte getSubCommand () { return this.subCommand; } /**
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun May 17 13:43:42 UTC 2020 - 13.2K bytes - Viewed (0)