Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 372 for serialize (0.26 sec)

  1. doc/go_mem.html

    </p>
    
    
    <h3 id="advice">Advice</h3>
    
    <p>
    Programs that modify data being simultaneously accessed by multiple goroutines
    must serialize such access.
    </p>
    
    <p>
    To serialize access, protect the data with channel operations or other synchronization primitives
    such as those in the <a href="/pkg/sync/"><code>sync</code></a>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       * optimizing, because the rest have the option of calling `trimmed`.
       */
    
      private final transient int start; // it happens that we only serialize instances where this is 0
      private final int end; // exclusive
    
      private ImmutableIntArray(int[] array) {
        this(array, 0, array.length);
      }
    
      private ImmutableIntArray(int[] array, int start, int end) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableCollection.java

        for (E e : this) {
          dst[offset++] = e;
        }
        return offset;
      }
    
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
      Object writeReplace() {
        // We serialize by default to ImmutableList, the simplest thing that works.
        return new ImmutableList.SerializedForm(toArray());
      }
    
      @J2ktIncompatible // serialization
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSet.java

        return (result == null) ? asList = createAsList() : result;
      }
    
      ImmutableList<E> createAsList() {
        return ImmutableList.asImmutableList(toArray());
      }
    
      /*
       * This class is used to serialize all ImmutableSet instances, except for
       * ImmutableEnumSet/ImmutableSortedSet, regardless of implementation type. It
       * captures their "logical contents" and they are reconstructed using public
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       * optimizing, because the rest have the option of calling `trimmed`.
       */
    
      private final transient int start; // it happens that we only serialize instances where this is 0
      private final int end; // exclusive
    
      private ImmutableDoubleArray(double[] array) {
        this(array, 0, array.length);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  6. cmd/data-usage-cache.go

    	dataUsageCacheVerV5      = 5
    	dataUsageCacheVerV4      = 4
    	dataUsageCacheVerV3      = 3
    	dataUsageCacheVerV2      = 2
    	dataUsageCacheVerV1      = 1
    )
    
    // serialize the contents of the cache.
    func (d *dataUsageCache) serializeTo(dst io.Writer) error {
    	// Add version and compress.
    	_, err := dst.Write([]byte{dataUsageCacheVerCurrent})
    	if err != nil {
    		return err
    	}
    	enc, err := zstd.NewWriter(dst,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  7. tensorflow/c/c_api.cc

                              const void** buf, size_t* len);
    
    // TODO(josh11b,mrry): Change Session to be able to use a Graph*
    // directly, instead of requiring us to serialize to a GraphDef and
    // call Session::Extend().
    bool ExtendSessionGraphHelper(TF_Session* session, TF_Status* status) {
      if (session->graph != nullptr) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Range.java

        }
      }
    
      @SuppressWarnings("unchecked") // this method may throw CCE
      static int compareOrThrow(Comparable left, Comparable right) {
        return left.compareTo(right);
      }
    
      /** Needed to serialize sorted collections of Ranges. */
      private static class RangeLexOrdering extends Ordering<Range<?>> implements Serializable {
        static final Ordering<?> INSTANCE = new RangeLexOrdering();
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            try {
                resultData.setData(SerializeUtil.fromObjectToBinary(dataMap));
            } catch (final Exception e) {
                throw new CrawlingAccessException("Could not serialize object: " + responseData.getUrl(), e);
            }
            resultData.setEncoding(charsetName);
        }
    
        protected void normalizeData(final ResponseData responseData, final Map<String, Object> dataMap) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 41.9K bytes
    - Viewed (0)
  10. misc/ios/go_ios_exec.go

    	"time"
    )
    
    const debug = false
    
    var tmpdir string
    
    var (
    	devID    string
    	appID    string
    	teamID   string
    	bundleID string
    	deviceID string
    )
    
    // lock is a file lock to serialize iOS runs. It is global to avoid the
    // garbage collector finalizing it, closing the file and releasing the
    // lock prematurely.
    var lock *os.File
    
    func main() {
    	log.SetFlags(0)
    	log.SetPrefix("go_ios_exec: ")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
Back to top