Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for rawValue (0.17 sec)

  1. src/encoding/asn1/asn1_test.go

    		want string
    	}{
    		{b: []byte{0x05, 0x00}, v: nil, want: "asn1: Unmarshal recipient value is nil"},
    		{b: []byte{0x05, 0x00}, v: RawValue{}, want: "asn1: Unmarshal recipient value is non-pointer asn1.RawValue"},
    		{b: []byte{0x05, 0x00}, v: (*RawValue)(nil), want: "asn1: Unmarshal recipient value is nil *asn1.RawValue"},
    	}
    
    	for _, test := range tests {
    		_, err := Unmarshal(test.b, test.v)
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
  2. src/encoding/asn1/asn1.go

    		return
    	}
    	ret.BitLength = (len(bytes)-1)*8 - paddingBits
    	ret.Bytes = bytes[1:]
    	return
    }
    
    // NULL
    
    // NullRawValue is a [RawValue] with its Tag set to the ASN.1 NULL type tag (5).
    var NullRawValue = RawValue{Tag: TagNull}
    
    // NullBytes contains bytes representing the DER-encoded ASN.1 NULL type.
    var NullBytes = []byte{TagNull, 0}
    
    // OBJECT IDENTIFIER
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  3. src/encoding/asn1/marshal_test.go

    	A string `asn1:"ia5"`
    }
    
    type printableStringTest struct {
    	A string `asn1:"printable"`
    }
    
    type genericStringTest struct {
    	A string
    }
    
    type optionalRawValueTest struct {
    	A RawValue `asn1:"optional"`
    }
    
    type omitEmptyTest struct {
    	A []string `asn1:"omitempty"`
    }
    
    type defaultTest struct {
    	A int `asn1:"optional,default:1"`
    }
    
    type applicationTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 10K bytes
    - Viewed (0)
  4. src/crypto/x509/parser.go

    			}
    			var rawValue cryptobyte.String
    			var valueTag cryptobyte_asn1.Tag
    			if !atav.ReadAnyASN1(&rawValue, &valueTag) {
    				return nil, errors.New("x509: invalid RDNSequence: invalid attribute value")
    			}
    			var err error
    			attr.Value, err = parseASN1String(valueTag, rawValue)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  5. api/go1.9.txt

    pkg database/sql/driver, var ErrRemoveArgument error
    pkg encoding/asn1, const TagNull = 5
    pkg encoding/asn1, const TagNull ideal-int
    pkg encoding/asn1, var NullBytes []uint8
    pkg encoding/asn1, var NullRawValue RawValue
    pkg encoding/base32, const NoPadding = -1
    pkg encoding/base32, const NoPadding int32
    pkg encoding/base32, const StdPadding = 61
    pkg encoding/base32, const StdPadding int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       */
      @CanIgnoreReturnValue
      public static long decode(String stringValue) {
        ParseRequest request = ParseRequest.fromString(stringValue);
    
        try {
          return parseUnsignedLong(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
              new NumberFormatException("Error parsing value: " + stringValue);
          decodeException.initCause(e);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * @since 13.0
       */
      @CanIgnoreReturnValue
      public static int decode(String stringValue) {
        ParseRequest request = ParseRequest.fromString(stringValue);
    
        try {
          return parseUnsignedInt(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
              new NumberFormatException("Error parsing value: " + stringValue);
          decodeException.initCause(e);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/UnsignedInts.java

       * @since 13.0
       */
      @CanIgnoreReturnValue
      public static int decode(String stringValue) {
        ParseRequest request = ParseRequest.fromString(stringValue);
    
        try {
          return parseUnsignedInt(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
              new NumberFormatException("Error parsing value: " + stringValue);
          decodeException.initCause(e);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/UnsignedLongs.java

       */
      @CanIgnoreReturnValue
      public static long decode(String stringValue) {
        ParseRequest request = ParseRequest.fromString(stringValue);
    
        try {
          return parseUnsignedLong(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
              new NumberFormatException("Error parsing value: " + stringValue);
          decodeException.initCause(e);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. src/encoding/asn1/marshal.go

    		if reflect.DeepEqual(v.Interface(), reflect.Zero(v.Type()).Interface()) {
    			return bytesEncoder(nil), nil
    		}
    	}
    
    	if v.Type() == rawValueType {
    		rv := v.Interface().(RawValue)
    		if len(rv.FullBytes) != 0 {
    			return bytesEncoder(rv.FullBytes), nil
    		}
    
    		t := new(taggedEncoder)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top