Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 6,880 for fill (0.39 sec)

  1. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        byte[][] arrays = new byte[arraysDim1][];
        // it's shared to avoid using too much memory in tests
        byte[] sharedArray = new byte[arraysDim2];
        Arrays.fill(arrays, sharedArray);
    
        try {
          Bytes.concat(arrays);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testEnsureCapacity() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TopKSelector.java

        T[] castBuffer = (T[]) buffer;
        sort(castBuffer, 0, bufferSize, comparator);
        if (bufferSize > k) {
          Arrays.fill(buffer, k, buffer.length, null);
          bufferSize = k;
          threshold = buffer[k - 1];
        }
        // Up to bufferSize, all elements of buffer are real Ts (not null unless T includes null)
        T[] topK = Arrays.copyOf(castBuffer, bufferSize);
        // we have to support null elements, so no ImmutableList for us
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

        void testDecodeDataIntegrity() throws SMBProtocolDecodingException {
            // Prepare buffer with specific pattern
            byte[] buffer = new byte[32];
            byte[] expectedData = new byte[16];
    
            // Fill data section with pattern
            for (int i = 0; i < 16; i++) {
                expectedData[i] = (byte) (0xA0 + i);
                buffer[16 + i] = expectedData[i];
            }
    
            // Set header values
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/ByteStreams.java

       *       channel have their own file descriptors. Generally this only happens when both channels
       *       are files or sockets. This performs zero copies - the bytes never enter userspace.
       *   <li>Use mmap(2) or equivalent. Requires that either the input channel or the output channel
       *       have file descriptors. Bytes are copied from the file into a kernel buffer, then directly
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

         */
        @Test
        @DisplayName("Handle large data size")
        void testLargeDataSize() throws CIFSException {
            // Create a large data array
            byte[] largeData = new byte[1024];
            Arrays.fill(largeData, (byte) 0xFF);
    
            byte[] avPairData = createAvPairData(0x99, largeData);
            byte[] eolData = createEolData();
    
            byte[] fullData = new byte[avPairData.length + eolData.length];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

       *
       * <p>CharStreams.copy was failing to clear its CharBuffer after each read call, which effectively
       * reduced the available size of the buffer each time a call to read didn't fill up the available
       * space in the buffer completely. In general this is a performance problem since the buffer size
       * is permanently reduced, but with certain Reader implementations it could also cause the buffer
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CharStreamsTest.java

       *
       * <p>CharStreams.copy was failing to clear its CharBuffer after each read call, which effectively
       * reduced the available size of the buffer each time a call to read didn't fill up the available
       * space in the buffer completely. In general this is a performance problem since the buffer size
       * is permanently reduced, but with certain Reader implementations it could also cause the buffer
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. cmd/erasure-decode.go

    // Copyright (c) 2015-2021 MinIO, Inc.
    //
    // This file is part of MinIO Object Storage stack
    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as published by
    // the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/config/BaseConfigurationTest.java

        void testInitDefaultsWithPresetMachineId() throws Exception {
            BaseConfiguration testConfig = new BaseConfiguration(false);
            byte[] customMachineId = new byte[32];
            Arrays.fill(customMachineId, (byte) 0xFF);
    
            // Use reflection to set private field
            java.lang.reflect.Field machineIdField = BaseConfiguration.class.getDeclaredField("machineId");
            machineIdField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

                // Write valid response data
                SMBUtil.writeInt4(15, buffer, 0);
                SMBUtil.writeInt4(16384, buffer, 4);
                SMBUtil.writeInt4(245760, buffer, 8);
                // Fill rest with random data
                for (int i = 12; i < buffer.length; i++) {
                    buffer[i] = (byte) (i % 256);
                }
    
                int bytesDecoded = response.decode(buffer, 0, buffer.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
Back to top