Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 143 for unmarshalV (0.05 seconds)

  1. internal/grid/types.go

    		for zb0008 := range zb0007 {
    			s += msgp.StringPrefixSize + len(zb0007[zb0008])
    		}
    	}
    
    	return s
    }
    
    // JSONPool is a pool for JSON objects that unmarshal into T.
    type JSONPool[T any] struct {
    	pool    sync.Pool
    	emptySz int
    }
    
    // NewJSONPool returns a new JSONPool.
    func NewJSONPool[T any]() *JSONPool[T] {
    	var t T
    	sz := 128
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  2. internal/s3select/json/args.go

    	}
    
    	*args = ReaderArgs(parsedArgs)
    	args.unmarshaled = true
    	return nil
    }
    
    // WriterArgs - represents elements inside <OutputSerialization><JSON/> in request XML.
    type WriterArgs struct {
    	RecordDelimiter string `xml:"RecordDelimiter"`
    	unmarshaled     bool
    }
    
    // IsEmpty - returns whether writer args is empty or not.
    func (args *WriterArgs) IsEmpty() bool {
    	return !args.unmarshaled
    }
    
    // UnmarshalXML - decodes XML data.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.7K bytes
    - Click Count (0)
  3. internal/bucket/lifecycle/filter_test.go

    		ObjectSizeLessThan:    100 * humanize.GiByte,
    	}
    	b, err := xml.Marshal(f1)
    	if err != nil {
    		t.Fatalf("Failed to marshal %v", f1)
    	}
    	var f2 Filter
    	err = xml.Unmarshal(b, &f2)
    	if err != nil {
    		t.Fatalf("Failed to unmarshal %s", string(b))
    	}
    	if f1.ObjectSizeLessThan != f2.ObjectSizeLessThan {
    		t.Fatalf("Expected %v but got %v", f1.ObjectSizeLessThan, f2.And.ObjectSizeLessThan)
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 7.2K bytes
    - Click Count (0)
  4. tests/scanner_valuer_test.go

    	bytes, err := json.Marshal(l)
    	return string(bytes), err
    }
    
    func (l *StringsSlice) Scan(input interface{}) error {
    	switch value := input.(type) {
    	case string:
    		return json.Unmarshal([]byte(value), l)
    	case []byte:
    		return json.Unmarshal(value, l)
    	default:
    		return errors.New("not supported")
    	}
    }
    
    type ExampleStruct struct {
    	Name string
    	Val  string
    }
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Click Count (0)
  5. internal/s3select/csv/args.go

    	CommentCharacter           string `xml:"Comments"`
    	AllowQuotedRecordDelimiter bool   `xml:"AllowQuotedRecordDelimiter"`
    	unmarshaled                bool
    }
    
    // IsEmpty - returns whether reader args is empty or not.
    func (args *ReaderArgs) IsEmpty() bool {
    	return !args.unmarshaled
    }
    
    // UnmarshalXML - decodes XML data.
    func (args *ReaderArgs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Aug 20 18:31:45 GMT 2024
    - 5.7K bytes
    - Click Count (0)
  6. internal/config/identity/openid/jwks_test.go

    	var jk JWKS
    	if err := json.Unmarshal([]byte(jsonkey), &jk); err != nil {
    		t.Fatal("Unmarshal: ", err)
    	} else if len(jk.Keys) != 3 {
    		t.Fatalf("Expected 3 keys, got %d", len(jk.Keys))
    	}
    
    	var kids []string
    	for ii, jks := range jk.Keys {
    		_, err := jks.DecodePublicKey()
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 9.8K bytes
    - Click Count (0)
  7. internal/s3select/parquet/args.go

    import "encoding/xml"
    
    // ReaderArgs - represents elements inside <InputSerialization><Parquet/> in request XML.
    type ReaderArgs struct {
    	unmarshaled bool
    }
    
    // IsEmpty - returns whether reader args is empty or not.
    func (args *ReaderArgs) IsEmpty() bool {
    	return !args.unmarshaled
    }
    
    // UnmarshalXML - decodes XML data.
    func (args *ReaderArgs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.4K bytes
    - Click Count (0)
  8. internal/config/storageclass/storage-class.go

    	type Alias Config
    	aux := &struct {
    		*Alias
    	}{
    		Alias: (*Alias)(sCfg),
    	}
    	return json.Unmarshal(data, &aux)
    }
    
    // IsValid - returns true if input string is a valid
    // 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.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  9. internal/bucket/lifecycle/expiration_test.go

    			expectedErr: errLifecycleDateNotMidnight,
    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			var expiration Expiration
    			err := xml.Unmarshal([]byte(tc.inputXML), &expiration)
    			if err != tc.expectedErr {
    				t.Fatalf("%d: Expected %v but got %v", i+1, tc.expectedErr, err)
    			}
    		})
    	}
    
    	validationTestCases := []struct {
    		inputXML    string
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  10. schema/serializer.go

    		case []byte:
    			bytes = v
    		case string:
    			bytes = []byte(v)
    		default:
    			bytes, err = json.Marshal(v)
    			if err != nil {
    				return err
    			}
    		}
    
    		if len(bytes) > 0 {
    			err = json.Unmarshal(bytes, fieldValue.Interface())
    		}
    	}
    
    	field.ReflectValueOf(ctx, dst).Set(fieldValue.Elem())
    	return
    }
    
    // Value implements serializer interface
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Oct 26 12:29:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
Back to Top