dCBOR Pattern TypeScript - v1.0.0-alpha.20
    Preparing search index...

    Function byteStringRegex

    • Creates a pattern that matches byte strings using a binary regex.

      The regex matches against raw bytes converted to a Latin-1 string. Use escape sequences like \x00 to match specific byte values.

      Parameters

      • pattern: RegExp

      Returns Pattern

      // Match bytes starting with 0x00
      byteStringRegex(/^\x00/)

      // Match ASCII "Hello"
      byteStringRegex(/Hello/)