Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for UnmarshalText (0.21 sec)

  1. api/go1.18.txt

    pkg net/netip, method (*Addr) UnmarshalBinary([]uint8) error
    pkg net/netip, method (*Addr) UnmarshalText([]uint8) error
    pkg net/netip, method (*AddrPort) UnmarshalBinary([]uint8) error
    pkg net/netip, method (*AddrPort) UnmarshalText([]uint8) error
    pkg net/netip, method (*Prefix) UnmarshalBinary([]uint8) error
    pkg net/netip, method (*Prefix) UnmarshalText([]uint8) error
    pkg net/netip, method (Addr) AppendTo([]uint8) []uint8
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  2. internal/kms/conn.go

    		KeyID:      d.KeyID,
    		Version:    uint32(d.Version),
    		Ciphertext: d.Ciphertext,
    	})
    }
    
    // UnmarshalText tries to decode text as JSON representation
    // of a DEK and sets DEK's key ID and ciphertext to the
    // decoded values.
    //
    // It sets DEK's plaintext to nil.
    func (d *DEK) UnmarshalText(text []byte) error {
    	type JSON struct {
    		KeyID      string `json:"keyid"`
    		Version    uint32 `json:"version"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. cni/pkg/log/uds_test.go

    		if k := cases[i].key; k != nil {
    			want["key"] = *k
    		}
    		assert.Equal(t, want, parsedLog)
    		i++
    	}
    }
    
    func TestParseCniLog(t *testing.T) {
    	wantT := &time.Time{}
    	assert.NoError(t, wantT.UnmarshalText([]byte("2020-01-01T00:00:00.356374Z")))
    	cases := []struct {
    		name string
    		in   string
    		out  cniLog
    	}{
    		{
    			"without keys",
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. internal/config/storageclass/storage-class.go

    // storage class kind supported.
    func IsValid(sc string) bool {
    	return sc == RRS || sc == STANDARD
    }
    
    // UnmarshalText unmarshals storage class from its textual form into
    // storageClass structure.
    func (sc *StorageClass) UnmarshalText(b []byte) error {
    	scStr := string(b)
    	if scStr == "" {
    		return nil
    	}
    	s, err := parseStorageClass(scStr)
    	if err != nil {
    		return err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. internal/kms/dek_test.go

    	for i, test := range dekEncodeDecodeTests {
    		text, err := test.Key.MarshalText()
    		if err != nil {
    			t.Fatalf("Test %d: failed to marshal DEK: %v", i, err)
    		}
    
    		var key DEK
    		if err = key.UnmarshalText(text); err != nil {
    			t.Fatalf("Test %d: failed to unmarshal DEK: %v", i, err)
    		}
    		if key.Plaintext != nil {
    			t.Fatalf("Test %d: unmarshaled DEK contains non-nil plaintext", i)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. api/go1.21.txt

    pkg log/slog, method (*Level) UnmarshalText([]uint8) error #56345
    pkg log/slog, method (*LevelVar) Level() Level #56345
    pkg log/slog, method (*LevelVar) MarshalText() ([]uint8, error) #56345
    pkg log/slog, method (*LevelVar) Set(Level) #56345
    pkg log/slog, method (*LevelVar) String() string #56345
    pkg log/slog, method (*LevelVar) UnmarshalText([]uint8) error #56345
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  7. api/go1.23.txt

    pkg crypto/x509, func ParseOID(string) (OID, error) #66249
    pkg crypto/x509, method (*OID) UnmarshalBinary([]uint8) error #66249
    pkg crypto/x509, method (*OID) UnmarshalText([]uint8) error #66249
    pkg crypto/x509, method (OID) MarshalBinary() ([]uint8, error) #66249
    pkg crypto/x509, method (OID) MarshalText() ([]uint8, error) #66249
    pkg debug/elf, const PT_OPENBSD_NOBTCFI = 1705237480 #66054
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jun 25 17:08:08 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. api/go1.6.txt

    pkg image/color, type NYCbCrA struct, embedded YCbCr
    pkg image/color, var NYCbCrAModel Model
    pkg math/big, method (*Float) MarshalText() ([]uint8, error)
    pkg math/big, method (*Float) UnmarshalText([]uint8) error
    pkg math/big, method (*Int) Append([]uint8, int) []uint8
    pkg math/big, method (*Int) Text(int) string
    pkg math/rand, func Read([]uint8) (int, error)
    pkg math/rand, method (*Rand) Read([]uint8) (int, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
  9. api/go1.3.txt

    pkg go/build, type Package struct, MFiles []string
    pkg math/big, method (*Int) MarshalText() ([]uint8, error)
    pkg math/big, method (*Int) UnmarshalText([]uint8) error
    pkg math/big, method (*Rat) MarshalText() ([]uint8, error)
    pkg math/big, method (*Rat) UnmarshalText([]uint8) error
    pkg net, type Dialer struct, KeepAlive time.Duration
    pkg net/http, const StateActive = 1
    pkg net/http, const StateActive ConnState
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Jun 02 02:45:00 UTC 2014
    - 117K bytes
    - Viewed (0)
  10. api/go1.2.txt

    pkg encoding, type TextMarshaler interface { MarshalText }
    pkg encoding, type TextMarshaler interface, MarshalText() ([]uint8, error)
    pkg encoding, type TextUnmarshaler interface { UnmarshalText }
    pkg encoding, type TextUnmarshaler interface, UnmarshalText([]uint8) error
    pkg encoding/xml, method (*Encoder) EncodeElement(interface{}, StartElement) error
    pkg encoding/xml, method (*Encoder) EncodeToken(Token) error
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (0)
Back to top