Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for body_fn (0.11 sec)

  1. src/net/http/internal/chunked_test.go

    	const bodylen = 1 << 20
    	r := NewChunkedReader(&funcReader{f: func(i int) ([]byte, error) {
    		if i < bodylen {
    			return []byte("1\r\nX\r\n"), nil
    		}
    		return []byte("0\r\n"), nil
    	}})
    	got, err := io.ReadAll(r)
    	if err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    	if len(got) != bodylen {
    		t.Errorf("read %v bytes, want %v", len(got), bodylen)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 20:45:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. tests/test_custom_middleware_exception.py

                nonlocal received
                message = await receive()
                if message["type"] != "http.request":
                    return message  # pragma: no cover
    
                body_len = len(message.get("body", b""))
                received += body_len
                if received > self.max_content_size:
                    raise HTTPException(
                        422,
                        detail={
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Aug 25 21:44:40 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/route/interface_openbsd.go

    	if len(b) < 24 {
    		return nil, errMessageTooShort
    	}
    	l := int(nativeEndian.Uint16(b[:2]))
    	if len(b) < l {
    		return nil, errInvalidMessage
    	}
    	bodyOff := int(nativeEndian.Uint16(b[4:6]))
    	if len(b) < bodyOff {
    		return nil, errInvalidMessage
    	}
    	m := &InterfaceAddrMessage{
    		Version: int(b[2]),
    		Type:    int(b[3]),
    		Flags:   int(nativeEndian.Uint32(b[12:16])),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 05 19:54:32 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/net/route/interface_multicast.go

    // license that can be found in the LICENSE file.
    
    //go:build darwin || dragonfly || freebsd
    
    package route
    
    func (w *wireFormat) parseInterfaceMulticastAddrMessage(_ RIBType, b []byte) (Message, error) {
    	if len(b) < w.bodyOff {
    		return nil, errMessageTooShort
    	}
    	l := int(nativeEndian.Uint16(b[:2]))
    	if len(b) < l {
    		return nil, errInvalidMessage
    	}
    	m := &InterfaceMulticastAddrMessage{
    		Version: int(b[2]),
    		Type:    int(b[3]),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 829 bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/route/interface_announce.go

    // license that can be found in the LICENSE file.
    
    //go:build dragonfly || freebsd || netbsd
    
    package route
    
    func (w *wireFormat) parseInterfaceAnnounceMessage(_ RIBType, b []byte) (Message, error) {
    	if len(b) < w.bodyOff {
    		return nil, errMessageTooShort
    	}
    	l := int(nativeEndian.Uint16(b[:2]))
    	if len(b) < l {
    		return nil, errInvalidMessage
    	}
    	m := &InterfaceAnnounceMessage{
    		Version: int(b[2]),
    		Type:    int(b[3]),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 770 bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/net/route/sys.go

    }
    
    func roundup(l int) int {
    	if l == 0 {
    		return kernelAlign
    	}
    	return (l + kernelAlign - 1) &^ (kernelAlign - 1)
    }
    
    type wireFormat struct {
    	extOff  int // offset of header extension
    	bodyOff int // offset of message body
    	parse   func(RIBType, []byte) (Message, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 940 bytes
    - Viewed (0)
  7. src/encoding/asn1/marshal.go

    			t.tag = bytesEncoder(appendTagAndLength(t.scratch[:0], tagAndLength{ClassUniversal, tag, bodyLen, isCompound}))
    
    			tt := new(taggedEncoder)
    
    			tt.body = t
    
    			tt.tag = bytesEncoder(appendTagAndLength(tt.scratch[:0], tagAndLength{
    				class:      class,
    				tag:        *params.tag,
    				length:     bodyLen + t.tag.Len(),
    				isCompound: true,
    			}))
    
    			return tt, nil
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

    }
    
    LogicalResult FindOwningWhileOp(func::FuncOp body_func, ModuleOp module,
                                    TF::WhileOp* while_op) {
      // Given a while loop body function 'body_func', find the tf.While Op that
      // uses it.
      auto uses_optional = body_func.getSymbolUses(module);
      if (!uses_optional.has_value()) {
        body_func.emitOpError() << "no use of while loop body";
        return LogicalResult::failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

      TF_RET_CHECK(n->IsWhileNode());
    
      // Check if there is any lifted args in body function.
      NameAttrList body_func;
      TF_RETURN_IF_ERROR(GetNodeAttr(n->def(), "body", &body_func));
      const FunctionDef* body_function_def = fld->Find(body_func.name());
      TF_RET_CHECK(body_function_def);
    
      if (!HasLiftedArgs(*body_function_def)) {
        return absl::OkStatus();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

    }
    
    LogicalResult FindOwningWhileOp(func::FuncOp body_func, ModuleOp module,
                                    TF::WhileOp& while_op) {
      // Given a while loop body function 'body_func', find the tf.While Op that
      // uses it.
      auto uses_optional = body_func.getSymbolUses(module);
      if (!uses_optional.has_value()) {
        body_func.emitOpError() << "no use of while loop body";
        return LogicalResult::failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
Back to top