Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1091 - 1100 of 1,386 for Byte (0.16 sec)

  1. src/test/java/jcifs/util/transport/ResponseTest.java

            assertEquals(mid, mockResponse.getMid());
    
            // Verify the method was called
            verify(mockResponse, times(1)).getMid();
        }
    
        @Test
        void testVerifySignature() {
            byte[] buffer = new byte[] { 1, 2, 3 };
            int offset = 0;
            int size = 3;
    
            // Simulate successful verification
            when(mockResponse.verifySignature(buffer, offset, size)).thenReturn(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  2. cmd/erasure_test.go

    }
    
    func TestErasureEncodeDecode(t *testing.T) {
    	data := make([]byte, 256)
    	if _, err := io.ReadFull(rand.Reader, data); err != nil {
    		t.Fatalf("Failed to read random data: %v", err)
    	}
    	for i, test := range erasureEncodeDecodeTests {
    		buffer := make([]byte, len(data), 2*len(data))
    		copy(buffer, data)
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

    class EncryptionNegotiateContextTest {
    
        @Mock
        private Configuration mockConfig;
    
        private static final int BUFFER_SIZE = 1024;
        private byte[] buffer;
    
        @BeforeEach
        void setUp() {
            buffer = new byte[BUFFER_SIZE];
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. cmd/postpolicyform_test.go

    			} else {
    				// Expires in 10 days.
    				pp.SetExpires(UTCNow().AddDate(0, 0, 10))
    			}
    
    			tt.fv.Set("Policy", base64.StdEncoding.EncodeToString([]byte(pp.String())))
    
    			policyBytes, err := base64.StdEncoding.DecodeString(base64.StdEncoding.EncodeToString([]byte(pp.String())))
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			postPolicyForm, err := parsePostPolicyForm(bytes.NewReader(policyBytes))
    			if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/transport/Response.java

         * @param i the starting index in the buffer
         * @param size the size of the signature data
         * @return whether signature verification is successful
         */
        boolean verifySignature(byte[] buffer, int i, int size);
    
        /**
         * Checks if signature verification failed.
         *
         * @return whether signature verification failed
         */
        boolean isVerifyFailed();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/lang/ClassUtil.java

        static {
            wrapperToPrimitiveMap.put(Boolean.class, Boolean.TYPE);
            wrapperToPrimitiveMap.put(Character.class, Character.TYPE);
            wrapperToPrimitiveMap.put(Byte.class, Byte.TYPE);
            wrapperToPrimitiveMap.put(Short.class, Short.TYPE);
            wrapperToPrimitiveMap.put(Integer.class, Integer.TYPE);
            wrapperToPrimitiveMap.put(Long.class, Long.TYPE);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

          i++
        }
        val groupLength = i - groupOffset
        if (groupLength == 0 || groupLength > 4) return null // Group is the wrong size.
    
        // We've successfully read a group. Assign its value to our byte array.
        address[b++] = (value.ushr(8) and 0xff).toByte()
        address[b++] = (value and 0xff).toByte()
      }
    
      // All done. If compression happened, we need to move bytes to the right place in the
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/RandomAmountInputStream.java

      private final Random random;
    
      public RandomAmountInputStream(InputStream in, Random random) {
        super(checkNotNull(in));
        this.random = checkNotNull(random);
      }
    
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        return super.read(b, off, random.nextInt(len) + 1);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/RequestWithFileId.java

     *
     * @author mbechler
     */
    public interface RequestWithFileId {
    
        /**
         * Sets the file ID for this request.
         *
         * @param fileId the file ID to set
         */
        void setFileId(byte[] fileId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      Short generateShortObject() {
        return new Short(generateShort());
      }
    
      @Generates
      byte generateByte() {
        return (byte) generateInt();
      }
    
      @SuppressWarnings("removal") // b/321209431 -- maybe just use valueOf here?
      @Generates
      Byte generateByteObject() {
        return new Byte(generateByte());
      }
    
      @Generates
      char generateChar() {
        return generateString().charAt(0);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
Back to top