Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 1,069 for nBytes (0.04 sec)

  1. cmd/config-encrypted_test.go

    		t.Run("", func(t *testing.T) {
    			ddata, err := madmin.DecryptData(test.cred.String(), bytes.NewReader(test.edata))
    			if err != nil && test.success {
    				t.Errorf("Expected success, saw failure %v", err)
    			}
    			if err == nil && !test.success {
    				t.Error("Expected failure, saw success")
    			}
    			if test.success {
    				if !bytes.Equal(ddata, data) {
    					t.Errorf("Expected %s, got %s", string(data), string(ddata))
    				}
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle-handlers_test.go

    		}
    		if testCase.shouldPass && !bytes.Equal(testCase.lifecycleResponse, rec.Body.Bytes()) {
    			t.Errorf("Test %d: %s: Expected the response to be `%s`, but instead found `%s`", i+1, instanceType, string(testCase.lifecycleResponse), rec.Body.String())
    		}
    		errorResponse := APIErrorResponse{}
    		err = xml.Unmarshal(rec.Body.Bytes(), &errorResponse)
    		if err != nil && !testCase.shouldPass {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

        }
    
        @Test
        @DisplayName("Test successful decode with data")
        void testDecodeWithData() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = new byte[24]; // 16 bytes header + 8 bytes data
            int bufferIndex = 0;
    
            // Set up test values
            int namedPipeState = 0x03; // NP_NOWAIT | NP_READMODE_MESSAGE
            int readDataAvailable = 100;
            int numberOfMessages = 2;
    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-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

      public void testReadFully() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        byte[] b = new byte[data.length];
        in.readFully(b);
        assertEquals(Bytes.asList(data), Bytes.asList(b));
      }
    
      public void testReadUnsignedByte_eof() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0]));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

                    dstIndex += 4;
    
                    SMBUtil.writeInt2(dstIndex - structStart, dst, cnOffsetOffset);
                    System.arraycopy(cnBytes, 0, dst, dstIndex, cnBytes.length);
                    dstIndex += cnBytes.length;
                    dstIndex += pad8(dstIndex);
    
                    SMBUtil.writeInt2(dstIndex - structStart, dst, dataOffsetOffset);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  6. cmd/http-stats.go

    // Increase S3 total input bytes
    func (s *connStats) incS3InputBytes(n int64) {
    	atomic.AddUint64(&s.s3InputBytes, uint64(n))
    }
    
    // Increase S3 total output bytes
    func (s *connStats) incS3OutputBytes(n int64) {
    	atomic.AddUint64(&s.s3OutputBytes, uint64(n))
    }
    
    // Return S3 total input bytes
    func (s *connStats) getS3InputBytes() uint64 {
    	return atomic.LoadUint64(&s.s3InputBytes)
    }
    
    // Return S3 total output bytes
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. apache-maven/README.txt

      build, reporting and documentation from a central piece of information.
    
      Documentation
      -------------
    
      The most up-to-date documentation can be found at https://maven.apache.org/.
    
      Release Notes
      -------------
    
      The full list of changes, system requirements and related can be found at https://maven.apache.org/docs/history.html.
    
      Installing Maven
      ----------------
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Mon Aug 12 21:54:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            // Verify capabilities (4 bytes)
            assertEquals(DEFAULT_CAPABILITIES, SMBUtil.readInt4(buffer, 0));
    
            // Verify client GUID (16 bytes)
            byte[] extractedGuid = new byte[16];
            System.arraycopy(buffer, 4, extractedGuid, 0, 16);
            assertArrayEquals(defaultClientGuid, extractedGuid);
    
            // Verify security mode (2 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Longs.java

       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 8 elements
       */
      public static long fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(
            bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7]);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Files.java

        return asByteSink(file, modes).asCharSink(charset);
      }
    
      /**
       * Reads all bytes from a file into a byte array.
       *
       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link java.nio.file.Files#readAllBytes}.
       *
       * @param file the file to read from
       * @return a byte array containing all the bytes from file
       * @throws IllegalArgumentException if the file is bigger than the largest possible byte array
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
Back to top