Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ClassApplication (0.17 sec)

  1. src/encoding/asn1/asn1.go

    	}
    
    	t, offset, err := parseTagAndLength(bytes, offset)
    	if err != nil {
    		return
    	}
    	if params.explicit {
    		expectedClass := ClassContextSpecific
    		if params.application {
    			expectedClass = ClassApplication
    		}
    		if offset == len(bytes) {
    			err = StructuralError{"explicit tag has no child"}
    			return
    		}
    		if t.class == expectedClass && t.tag == *params.tag && (t.length == 0 || t.isCompound) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  2. src/encoding/asn1/marshal.go

    	t.body, err = makeBody(v, params)
    	if err != nil {
    		return nil, err
    	}
    
    	bodyLen := t.body.Len()
    
    	class := ClassUniversal
    	if params.tag != nil {
    		if params.application {
    			class = ClassApplication
    		} else if params.private {
    			class = ClassPrivate
    		} else {
    			class = ClassContextSpecific
    		}
    
    		if params.explicit {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. src/encoding/asn1/asn1_test.go

    		{false, []byte{0x30, 3, TagInteger, 1, 1}},
    		{true, []byte{0x30, 3, (ClassContextSpecific << 6) | tag, 1, 1}},
    		{true, []byte{0x30, 3, (ClassContextSpecific << 6) | tag | isCompound, 1, 1}},
    		{false, []byte{0x30, 3, (ClassApplication << 6) | tag | isCompound, 1, 1}},
    		{false, []byte{0x30, 3, (ClassPrivate << 6) | tag | isCompound, 1, 1}},
    	}
    
    	for i, test := range tests {
    		var tagged taggedRawValue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(StructuralError).Error", Method, 0},
    		{"(SyntaxError).Error", Method, 0},
    		{"BitString", Type, 0},
    		{"BitString.BitLength", Field, 0},
    		{"BitString.Bytes", Field, 0},
    		{"ClassApplication", Const, 6},
    		{"ClassContextSpecific", Const, 6},
    		{"ClassPrivate", Const, 6},
    		{"ClassUniversal", Const, 6},
    		{"Enumerated", Type, 0},
    		{"Flag", Type, 0},
    		{"Marshal", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top