Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 203 for Serializer (0.12 sec)

  1. cni/pkg/plugin/plugin.go

    1. // Parse previous result. Remove this if your plugin is not chained.
    2. if conf.RawPrevResult != nil {
    3. resultBytes, err := json.Marshal(conf.RawPrevResult)
    4. if err != nil {
    5. return nil, fmt.Errorf("could not serialize prevResult: %v", err)
    6. }
    7. res, err := version.NewResult(conf.CNIVersion, resultBytes)
    8. if err != nil {
    9. return nil, fmt.Errorf("could not parse prevResult: %v", err)
    10. }
    11. conf.RawPrevResult = nil
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Aug 14 19:36:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractBiMap.java

    1. * Serialization stores the forward bimap, the inverse of this inverse.
    2. * Deserialization calls inverse() on the forward bimap and returns that
    3. * inverse.
    4. *
    5. * If a bimap and its inverse are serialized together, the deserialized
    6. * instances have inverse() methods that return the other.
    7. */
    8.  
    9. @Override
    10. @ParametricNullness
    11. K checkKey(@ParametricNullness K key) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  3. cmd/metacache-set_gen.go

    1. if err != nil {
    2. err = msgp.WrapError(err)
    3. return
    4. }
    5. }
    6. }
    7. o = bts
    8. return
    9. }
    10.  
    11. // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    12. func (z *listPathOptions) Msgsize() (s int) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 19 20:23:12 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

    1. Thread t2 = newStartedThread(c2);
    2. awaitTermination(t1);
    3. awaitTermination(t2);
    4. assertEquals(SIZE * COUNTDOWN, c1.counts + c2.counts);
    5. }
    6.  
    7. /** a deserialized serialized array holds same values */
    8. public void testSerialization() throws Exception {
    9. AtomicDoubleArray x = new AtomicDoubleArray(SIZE);
    10. for (int i = 0; i < SIZE; i++) {
    11. x.set(i, (double) -i);
    12. }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. internal/hash/checksum.go

    1. if c == nil {
    2. return nil
    3. }
    4. var tmp [binary.MaxVarintLen32]byte
    5. n := binary.PutUvarint(tmp[:], uint64(c.Type))
    6. crc := c.Raw
    7. if c.Type.Trailing() {
    8. // When we serialize we don't care if it was trailing.
    9. c.Type ^= ChecksumTrailing
    10. }
    11. if len(crc) != c.Type.RawByteLen() {
    12. return b
    13. }
    14. b = append(b, tmp[:n]...)
    15. b = append(b, crc...)
    16. if c.Type.Is(ChecksumMultipart) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. cmd/data-usage_test.go

    1. t.Fatal(err)
    2. }
    3. e := want.find("abucket/dir2")
    4. want.replace("abucket/dir2", "", *e)
    5. var buf bytes.Buffer
    6. err = want.serializeTo(&buf)
    7. if err != nil {
    8. t.Fatal(err)
    9. }
    10. t.Log("serialized size:", buf.Len(), "bytes")
    11. var got dataUsageCache
    12. err = got.deserialize(&buf)
    13. if err != nil {
    14. t.Fatal(err)
    15. }
    16. if got.Info.LastUpdate.IsZero() {
    17. t.Error("lastupdate not set")
    18. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. tensorflow/c/c_api.cc

    1. const void** buf, size_t* len);
    2.  
    3. // TODO(josh11b,mrry): Change Session to be able to use a Graph*
    4. // directly, instead of requiring us to serialize to a GraphDef and
    5. // call Session::Extend().
    6. bool ExtendSessionGraphHelper(TF_Session* session, TF_Status* status) {
    7. if (session->graph != nullptr) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  8. fastapi/_compat.py

    1. except ValidationError as exc:
    2. return None, _regenerate_error_with_loc(
    3. errors=exc.errors(include_url=False), loc_prefix=loc
    4. )
    5.  
    6. def serialize(
    7. self,
    8. value: Any,
    9. *,
    10. mode: Literal["json", "python"] = "json",
    11. include: Union[IncEx, None] = None,
    12. exclude: Union[IncEx, None] = None,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

    1. @SuppressWarnings("unchecked")
    2. static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    3.  
    4. // This reference is only used by GWT compiler to infer the keys and values
    5. // of the map that needs to be serialized.
    6. private @Nullable Comparator<? super K> unusedComparatorForSerialization;
    7. private @Nullable K unusedKeyForSerialization;
    8. private @Nullable V unusedValueForSerialization;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. cmd/s3-zip-handlers.go

    1. files, srcInfo, err := getFilesListFromZIPObject(ctx, objectAPI, bucket, object, opts)
    2. if err != nil {
    3. return nil, err
    4. }
    5. files.OptimizeSize()
    6. zipInfo, err := files.Serialize()
    7. if err != nil {
    8. return nil, err
    9. }
    10. at := archiveType
    11. zipInfoStr := string(zipInfo)
    12. if opts.EncryptFn != nil {
    13. at = archiveTypeEnc
    14. zipInfoStr = string(opts.EncryptFn(archiveTypeEnc, zipInfo))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top