Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,006 for Fill (0.25 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        }
      }
    
      @Test fun readPaddedDataFrame() {
        val dataLength = 1123
        val expectedData = ByteArray(dataLength)
        Arrays.fill(expectedData, 2.toByte())
        val paddingLength = 254
        val padding = ByteArray(paddingLength)
        Arrays.fill(padding, 0.toByte())
        writeMedium(frame, dataLength + paddingLength + 1)
        frame.writeByte(Http2.TYPE_DATA)
        frame.writeByte(FLAG_PADDED)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. src/bufio/bufio.go

    }
    
    var errNegativeRead = errors.New("bufio: reader returned negative count from Read")
    
    // fill reads a new chunk into the buffer.
    func (b *Reader) fill() {
    	// Slide existing data to beginning.
    	if b.r > 0 {
    		copy(b.buf, b.buf[b.r:b.w])
    		b.w -= b.r
    		b.r = 0
    	}
    
    	if b.w >= len(b.buf) {
    		panic("bufio: tried to fill full buffer")
    	}
    
    	// Read new data: try a limited number of times.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

          values[dstIndex] = 0;
          entries[dstIndex] = UNSET;
        }
      }
    
      public void clear() {
        modCount++;
        Arrays.fill(keys, 0, size, null);
        Arrays.fill(values, 0, size, 0);
        Arrays.fill(table, UNSET);
        Arrays.fill(entries, UNSET);
        this.size = 0;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    			t.Errorf(testname+" (fill 2): m == %d, expected %d", m, len(fus))
    		}
    		if err != nil {
    			t.Errorf(testname+" (fill 3): err should always be nil, found err == %s", err)
    		}
    		s += fus
    		check(t, testname+" (fill 4)", buf, s)
    	}
    	return s
    }
    
    // Fill buf through n writes of byte slice fub.
    // The initial contents of buf corresponds to the string s;
    // the result is the final contents of buf returned as a string.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental_test.cc

                        /*expected_shape*/ make_shape({1, 6}));
      TFE_DeleteOp(reshape_op);
      reshape_op = nullptr;
    
      TFE_Op* fill_op = TFE_NewOp(tfe_context_, "Fill", status_);
      CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_);
      TFE_OpSetAttrType(fill_op, "T", TF_FLOAT);
      TFE_OpSetAttrType(fill_op, "Tshape", TF_INT32);
    
      float five = 5.0;
      TFE_TensorHandle* scalar = TestScalarTensorHandle(tfe_context_, five);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/collect/HashBiMap.java

      @Override
      public void clear() {
        Arrays.fill(keys, 0, size, null);
        Arrays.fill(values, 0, size, null);
        Arrays.fill(hashTableKToV, ABSENT);
        Arrays.fill(hashTableVToK, ABSENT);
        Arrays.fill(nextInBucketKToV, 0, size, ABSENT);
        Arrays.fill(nextInBucketVToK, 0, size, ABSENT);
        Arrays.fill(prevInInsertionOrder, 0, size, ABSENT);
        Arrays.fill(nextInInsertionOrder, 0, size, ABSENT);
        size = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

              } else {
                evictToRecoverBytes(dynamicTableByteCount - maxDynamicTableByteCount)
              }
            }
          }
    
          private fun clearDynamicTable() {
            dynamicTable.fill(null)
            nextHeaderIndex = dynamicTable.size - 1
            headerCount = 0
            dynamicTableByteCount = 0
          }
    
          /** Returns the count of entries evicted. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
  8. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        Arrays.fill(b, (byte) 0);
        ByteStreams.readFully(newTestStream(10), b, 0, 0);
        assertThat(b).isEqualTo(new byte[10]);
    
        Arrays.fill(b, (byte) 0);
        ByteStreams.readFully(newTestStream(10), b, 0, 10);
        assertThat(b).isEqualTo(newPreFilledByteArray(10));
    
        Arrays.fill(b, (byte) 0);
        ByteStreams.readFully(newTestStream(10), b, 0, 5);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        Arrays.fill(b, (byte) 0);
        ByteStreams.readFully(newTestStream(10), b, 0, 0);
        assertThat(b).isEqualTo(new byte[10]);
    
        Arrays.fill(b, (byte) 0);
        ByteStreams.readFully(newTestStream(10), b, 0, 10);
        assertThat(b).isEqualTo(newPreFilledByteArray(10));
    
        Arrays.fill(b, (byte) 0);
        ByteStreams.readFully(newTestStream(10), b, 0, 5);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       * values are null. This method may update {@code alternatingKeysAndValues} if there are duplicate
       * keys. If so, the return value will indicate how many entries are still valid, and will also
       * include a {@link Builder.DuplicateKey} in case duplicate keys are not allowed now or will not
       * be allowed on a later {@link Builder#buildOrThrow()} call.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
Back to top