Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 247 for deserialize (0.19 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 May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationEqualTester.java

      @CollectionFeature.Require(SERIALIZABLE)
      public void testReserialize() {
        assertEquals(SerializableTester.reserialize(actualContents()), actualContents());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/Platform.java

     *
     * @author Chris Povirk
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class Platform {
      /** Serializes and deserializes the specified object. */
      @SuppressWarnings("unchecked")
      static <T> T reserialize(T object) {
        checkNotNull(object);
        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        try {
          ObjectOutputStream out = new ObjectOutputStream(bytes);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Aug 23 12:13:11 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/Platform.java

     *
     * @author Chris Povirk
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class Platform {
      /** Serializes and deserializes the specified object. */
      @SuppressWarnings("unchecked")
      static <T> T reserialize(T object) {
        checkNotNull(object);
        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        try {
          ObjectOutputStream out = new ObjectOutputStream(bytes);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 23 12:13:11 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/LenientSerializableTester.java

        Set<E> copy = reserialize(original);
        assertEquals(original, copy);
        assertTrue(copy instanceof ImmutableSet);
        return copy;
      }
    
      @CanIgnoreReturnValue
      @GwtIncompatible // SerializableTester
      static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) {
        Multiset<E> copy = reserialize(original);
        assertEquals(original, copy);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Aug 04 15:33:27 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/ReserializingTestSetGenerator.java

     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.util.Set;
    
    /**
     * Reserializes the sets created by another test set generator.
     *
     * <p>TODO: make CollectionTestSuiteBuilder test reserialized collections
     *
     * @author Jesse Wilson
     */
    @GwtIncompatible
    public class ReserializingTestSetGenerator<E> extends ReserializingTestCollectionGenerator<E>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  7. guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/Platform.java

    /**
     * Methods factored out so that they can be emulated differently in GWT.
     *
     * @author Chris Povirk
     */
    final class Platform {
      /** Serializes and deserializes the specified object (a no-op under GWT). */
      @SuppressWarnings("unchecked")
      static <T> T reserialize(T object) {
        return checkNotNull(object);
      }
    
      private Platform() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationEqualTester.java

      @CollectionFeature.Require(SERIALIZABLE)
      public void testReserialize() {
        assertEquals(SerializableTester.reserialize(actualContents()), actualContents());
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/ReserializingTestSetGenerator.java

     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.util.Set;
    
    /**
     * Reserializes the sets created by another test set generator.
     *
     * <p>TODO: make CollectionTestSuiteBuilder test reserialized collections
     *
     * @author Jesse Wilson
     */
    @GwtIncompatible
    public class ReserializingTestSetGenerator<E> extends ReserializingTestCollectionGenerator<E>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/SuppliersTest.java

        assertEquals(Integer.valueOf(5), reserialize(Suppliers.ofInstance(5)).get());
        assertEquals(
            Integer.valueOf(5),
            reserialize(Suppliers.compose(Functions.identity(), Suppliers.ofInstance(5))).get());
        assertEquals(Integer.valueOf(5), reserialize(Suppliers.memoize(Suppliers.ofInstance(5))).get());
        assertEquals(
            Integer.valueOf(5),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
Back to top