Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 205 for marshaled (0.52 sec)

  1. src/crypto/tls/handshake_messages_test.go

    				if !ok {
    					t.Errorf("#%d: failed to create value", i)
    					break
    				}
    
    				m1 := v.Interface().(handshakeMessage)
    				marshaled := mustMarshal(t, m1)
    				if !m.unmarshal(marshaled) {
    					t.Errorf("#%d failed to unmarshal %#v %x", i, m1, marshaled)
    					break
    				}
    
    				if m, ok := m.(*SessionState); ok {
    					m.activeCertHandles = nil
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. src/encoding/asn1/marshal.go

    	return t, nil
    }
    
    // Marshal returns the ASN.1 encoding of val.
    //
    // In addition to the struct tags recognized by Unmarshal, the following can be
    // used:
    //
    //	ia5:         causes strings to be marshaled as ASN.1, IA5String values
    //	omitempty:   causes empty slices to be skipped
    //	printable:   causes strings to be marshaled as ASN.1, PrintableString values
    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. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/managedfields_test.go

    			if err != nil {
    				t.Fatalf("did not expect encoding error but got: %v", err)
    			}
    			marshaled, err := yaml.Marshal(&encoded)
    			if err != nil {
    				t.Fatalf("did not expect yaml marshalling error but got: %v", err)
    			}
    			if !reflect.DeepEqual(string(marshaled), test) {
    				t.Fatalf("expected:\n%v\nbut got:\n%v", test, string(marshaled))
    			}
    		})
    	}
    }
    
    func TestBuildManagerIdentifier(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  4. src/hash/crc64/crc64_test.go

    import (
    	"encoding"
    	"io"
    	"testing"
    )
    
    type test struct {
    	outISO        uint64
    	outECMA       uint64
    	in            string
    	halfStateISO  string // ISO marshaled hash state after first half of in written, used by TestGoldenMarshal
    	halfStateECMA string // ECMA marshaled hash state after first half of in written, used by TestGoldenMarshal
    }
    
    var golden = []test{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 25 06:32:12 UTC 2018
    - 9.9K bytes
    - Viewed (0)
  5. cmd/bucket-listobjects-handlers.go

    		return
    	}
    
    	listObjectVersions := objectAPI.ListObjectVersions
    
    	// Initiate a list object versions operation based on the input params.
    	// On success would return back ListObjectsInfo object to be
    	// marshaled into S3 compatible XML header.
    	listObjectVersionsInfo, err := listObjectVersions(ctx, bucket, prefix, marker, versionIDMarker, delimiter, maxkeys)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. src/hash/crc32/crc32_test.go

    	ieee.Write([]byte("hello"))
    }
    
    type test struct {
    	ieee, castagnoli    uint32
    	in                  string
    	halfStateIEEE       string // IEEE marshaled hash state after first half of in written, used by TestGoldenMarshal
    	halfStateCastagnoli string // Castagnoli marshaled hash state after first half of in written, used by TestGoldenMarshal
    }
    
    var golden = []test{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/crypto/cryptobyte/builder.go

    }
    
    // A MarshalingValue marshals itself into a Builder.
    type MarshalingValue interface {
    	// Marshal is called by Builder.AddValue. It receives a pointer to a builder
    	// to marshal itself into. It may return an error that occurred during
    	// marshaling, such as unset or invalid values.
    	Marshal(b *Builder) error
    }
    
    // AddValue calls Marshal on v, passing a pointer to the builder to append to.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. src/encoding/json/encode_test.go

    	s := renamedByteSlice("abc")
    	got, err := Marshal(s)
    	if err != nil {
    		t.Fatalf("Marshal error: %v", err)
    	}
    	want := `"YWJj"`
    	if string(got) != want {
    		t.Errorf("Marshal:\n\tgot:  %s\n\twant: %s", got, want)
    	}
    	r := renamedRenamedByteSlice("abc")
    	got, err = Marshal(r)
    	if err != nil {
    		t.Fatalf("Marshal error: %v", err)
    	}
    	if string(got) != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/crdclient/client.go

    // Istio store interface, we need to take dynamic inputs. Using the dynamic informers results in poor
    // performance, as the cache will store unstructured objects which need to be marshaled on each Get/List call.
    // Using istio/client-go directly will cache objects marshaled, allowing us to have cheap Get/List calls,
    // at the expense of some code gen.
    package crdclient
    
    import (
    	"fmt"
    	"sync"
    	"time"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. src/encoding/xml/marshal.go

    		start.Name.Local = typ.Name()
    	} else {
    		// Must be a pointer to a named type,
    		// since it has the Marshaler methods.
    		start.Name.Local = typ.Elem().Name()
    	}
    	return start
    }
    
    // marshalInterface marshals a Marshaler interface value.
    func (p *printer) marshalInterface(val Marshaler, start StartElement) error {
    	// Push a marker onto the tag stack so that MarshalXML
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top