Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testReadLength_LongForm (0.65 sec)

  1. src/test/java/jcifs/pac/ASN1UtilTest.java

            InputStream s = new ByteArrayInputStream(new byte[] { 0x0A });
            int length = ASN1Util.readLength(s, 100, false);
            assertEquals(10, length);
        }
    
        @Test
        void testReadLength_LongForm() throws IOException {
            // Definite-length long form (length 256)
            InputStream s = new ByteArrayInputStream(new byte[] { (byte) 0x82, 0x01, 0x00 });
            int length = ASN1Util.readLength(s, 500, false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top