Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for reserialize (0.4 sec)

  1. cmd/xl-storage-meta-inline.go

    		if err != nil {
    			return keys, err
    		}
    	}
    	return keys, nil
    }
    
    // serialize will serialize the provided keys and values.
    // The function will panic if keys/value slices aren't of equal length.
    // Payload size can give an indication of expected payload size.
    // If plSize is <= 0 it will be calculated.
    func (x *xlMetaInlineData) serialize(plSize int, keys [][]byte, vals [][]byte) {
    	if len(keys) != len(vals) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  2. cmd/metacache-entries.go

    	}
    	selected.cached.versions = mergeXLV2Versions(r.objQuorum, r.strict, r.requestedVersions, r.candidates...)
    	if len(selected.cached.versions) == 0 {
    		return nil, false
    	}
    
    	// Reserialize
    	var err error
    	selected.metadata, err = selected.cached.AppendTo(metaDataPoolGet())
    	if err != nil {
    		bugLogIf(context.Background(), err)
    		return nil, false
    	}
    	return selected, true
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelProcessor.java

         * returns.
         *
         * @param request The reader request to deserialize the model, must not be {@code null}.
         * @return The deserialized model, never {@code null}.
         * @throws IOException If the model could not be deserialized.
         * @throws XmlReaderException If the input format could not be parsed.
         */
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  4. istioctl/pkg/admin/istiodconfig.go

    	if err != nil {
    		return nil, fmt.Errorf("cannot deserialize response %s", err)
    	}
    	return scopeInfos, nil
    }
    
    func (c *ControlzClient) PutScope(scope *ScopeInfo) error {
    	var jsonScopeInfo bytes.Buffer
    	err := json.NewEncoder(&jsonScopeInfo).Encode(scope)
    	if err != nil {
    		return fmt.Errorf("cannot serialize scope %+v", *scope)
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Suppliers.java

       *
       * <p>The returned supplier is thread-safe. The supplier's serialized form does not contain the
       * cached value, which will be recalculated when {@code get()} is called on the reserialized
       * instance. The actual memoization does not happen when the underlying delegate throws an
       * exception.
       *
       * <p>When the underlying delegate throws an exception then this memoizing supplier will keep
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Suppliers.java

       *
       * <p>The returned supplier is thread-safe. The supplier's serialized form does not contain the
       * cached value, which will be recalculated when {@code get()} is called on the reserialized
       * instance. The actual memoization does not happen when the underlying delegate throws an
       * exception.
       *
       * <p>When the underlying delegate throws an exception then this memoizing supplier will keep
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. cmd/data-usage-cache.go

    	}
    	err = mEnc.Flush()
    	if err != nil {
    		return err
    	}
    	err = enc.Close()
    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    // deserialize the supplied byte slice into the cache.
    func (d *dataUsageCache) deserialize(r io.Reader) error {
    	var b [1]byte
    	n, _ := r.Read(b[:])
    	if n != 1 {
    		return io.ErrUnexpectedEOF
    	}
    	ver := int(b[0])
    	switch ver {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 41.3K bytes
    - Viewed (1)
  8. cmd/data-usage_test.go

    	var got dataUsageCache
    	err = got.deserialize(&buf)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if got.Info.LastUpdate.IsZero() {
    		t.Error("lastupdate not set")
    	}
    
    	if !want.Info.LastUpdate.Equal(got.Info.LastUpdate) {
    		t.Fatalf("deserialize LastUpdate mismatch\nwant: %+v\ngot:  %+v", want, got)
    	}
    	if len(want.Cache) != len(got.Cache) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  9. samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java

        Request request = new Request.Builder()
            .url(ENDPOINT)
            .build();
    
        // Execute the request and retrieve the response.
        try (Response response = client.newCall(request).execute()) {
          // Deserialize HTTP response to concrete type.
          ResponseBody body = response.body();
          List<Contributor> contributors = CONTRIBUTORS_JSON_ADAPTER.fromJson(body.source());
    
          // Sort list by the most contributions.
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  10. fastapi/_compat.py

                except ValidationError as exc:
                    return None, _regenerate_error_with_loc(
                        errors=exc.errors(include_url=False), loc_prefix=loc
                    )
    
            def serialize(
                self,
                value: Any,
                *,
                mode: Literal["json", "python"] = "json",
                include: Union[IncEx, None] = None,
                exclude: Union[IncEx, None] = None,
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top