Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readTagNumber (0.23 sec)

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

            }, "Should throw IOException for unexpected tag");
        }
    
        // --- readTagNumber ---
    
        @Test
        void testReadTagNumber_Simple() throws IOException {
            // Simple tag 5
            InputStream s = new ByteArrayInputStream(new byte[] {});
            int tagNo = ASN1Util.readTagNumber(s, 0x05);
            assertEquals(5, tagNo);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/ASN1Util.java

         */
        public static byte[] readUnparsedTagged(final int expectTag, final int limit, final ASN1InputStream in) throws IOException {
            final int ftag = in.read();
            final int tag = readTagNumber(in, ftag);
            if (tag != expectTag) {
                throw new IOException("Unexpected tag " + tag);
            }
            final int length = readLength(in, limit, false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top