Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for byteslice (0.13 sec)

  1. src/internal/pkgbits/codes.go

    // Note: These values are public and cannot be changed without
    // updating the go/types importers.
    
    const (
    	TypeBasic CodeType = iota
    	TypeNamed
    	TypePointer
    	TypeSlice
    	TypeArray
    	TypeChan
    	TypeMap
    	TypeSignature
    	TypeStruct
    	TypeInterface
    	TypeUnion
    	TypeTypeParam
    )
    
    // A CodeObj distinguishes among go/types.Object encodings.
    type CodeObj int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 16:15:47 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. src/crypto/elliptic/nistec.go

    func (curve *nistCurve[Point]) normalizeScalar(scalar []byte) []byte {
    	byteSize := (curve.params.N.BitLen() + 7) / 8
    	if len(scalar) == byteSize {
    		return scalar
    	}
    	s := new(big.Int).SetBytes(scalar)
    	if len(scalar) > byteSize {
    		s.Mod(s, curve.params.N)
    	}
    	out := make([]byte, byteSize)
    	return s.FillBytes(out)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 16:19:34 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  3. test/codegen/strings.go

    func CountRunes(s string) int { // Issue #24923
    	// amd64:`.*countrunes`
    	return len([]rune(s))
    }
    
    func CountBytes(s []byte) int {
    	// amd64:-`.*runtime.slicebytetostring`
    	return len(string(s))
    }
    
    func ToByteSlice() []byte { // Issue #24698
    	// amd64:`LEAQ\ttype:\[3\]uint8`
    	// amd64:`CALL\truntime\.newobject`
    	// amd64:-`.*runtime.stringtoslicebyte`
    	return []byte("foo")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 26 17:17:28 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/c/tensor_interface.h

      virtual int64_t Dim(int dim_index) const = 0;
      // Returns number of elements across all dimensions.
      virtual int64_t NumElements() const = 0;
      // Return size in bytes of the Tensor
      virtual size_t ByteSize() const = 0;
      // Returns a pointer to tensor data
      virtual void* Data() const = 0;
    
      // Returns if the tensor is aligned
      virtual bool IsAligned() const = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 09 23:17:07 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/dwarf.go

    	}
    	kind := decodetypeKind(d.arch, tdata)
    	bytesize := decodetypeSize(d.arch, tdata)
    
    	var die, typedefdie *dwarf.DWDie
    	switch kind {
    	case abi.Bool:
    		die = d.newdie(&dwtypes, dwarf.DW_ABRV_BASETYPE, name)
    		newattr(die, dwarf.DW_AT_encoding, dwarf.DW_CLS_CONSTANT, dwarf.DW_ATE_boolean, 0)
    		newattr(die, dwarf.DW_AT_byte_size, dwarf.DW_CLS_CONSTANT, bytesize, 0)
    
    	case abi.Int,
    		abi.Int8,
    		abi.Int16,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  6. tensorflow/c/tf_tensor.cc

    int64_t TF_Dim(const TF_Tensor* t, int dim_index) {
      return t->tensor->Dim(dim_index);
    }
    
    size_t TF_TensorByteSize(const TF_Tensor* t) { return t->tensor->ByteSize(); }
    
    void* TF_TensorData(const TF_Tensor* t) { return t->tensor->Data(); }
    
    int64_t TF_TensorElementCount(const TF_Tensor* t) {
      int64_t result = 1;
      int rank = TF_NumDims(t);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. tensorflow/c/tf_tensor_internal.h

      void Release() override;
    
      DataType Type() const override;
      int NumDims() const override;
      int64_t Dim(int dim_index) const override;
      int64_t NumElements() const override;
      size_t ByteSize() const override;
      void* Data() const override;
      bool IsAligned() const override;
      bool CanMove() const override;
      std::string SummarizeValue() const override;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. src/go/types/instantiate_test.go

    			"T", []Type{Typ[Int]},
    			true,
    		},
    		{
    			"package differenttypeargs; type T[P any] int",
    			"T", []Type{Typ[Int]},
    			"T", []Type{Typ[String]},
    			false,
    		},
    		{
    			"package typeslice; type T[P any] int",
    			"T", []Type{NewSlice(Typ[Int])},
    			"T", []Type{NewSlice(Typ[Int])},
    			true,
    		},
    		{
    			// interface{interface{...}} is equivalent to interface{...}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2_gen.go

    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *xlMetaV2Object) Msgsize() (s int) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/instantiate_test.go

    			"T", []Type{Typ[Int]},
    			true,
    		},
    		{
    			"package differenttypeargs; type T[P any] int",
    			"T", []Type{Typ[Int]},
    			"T", []Type{Typ[String]},
    			false,
    		},
    		{
    			"package typeslice; type T[P any] int",
    			"T", []Type{NewSlice(Typ[Int])},
    			"T", []Type{NewSlice(Typ[Int])},
    			true,
    		},
    		{
    			// interface{interface{...}} is equivalent to interface{...}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top