@types/asn1

  • Version 0.2.0
  • Published
  • 5.56 kB
  • 1 dependency
  • MIT license

Install

npm i @types/asn1
yarn add @types/asn1
pnpm add @types/asn1

Overview

TypeScript definitions for asn1

Index

Classes

class BerReader

class BerReader {}

    constructor

    constructor(data: any);

      property buffer

      readonly buffer: any;

        property length

        readonly length: number;

          property offset

          readonly offset: number;

            property remain

            readonly remain: number;

              method peek

              peek: () => number | null;

                method readBoolean

                readBoolean: () => boolean;

                  method readByte

                  readByte: (peek: boolean) => number | null;

                    method readEnumeration

                    readEnumeration: () => number;

                      method readInt

                      readInt: () => number;

                        method readLength

                        readLength: (offset?: number) => number;

                          method readOID

                          readOID: (tag?: number) => string;

                            method readSequence

                            readSequence: (tag?: number) => number | null;

                              method readString

                              readString: { (tag?: number): string; (tag: number, retbuf: boolean): any };

                                class BerWriter

                                class BerWriter {}

                                  constructor

                                  constructor(options?: { size: number; growthFactor: number });

                                    property buffer

                                    readonly buffer: any;

                                      method endSequence

                                      endSequence: () => void;

                                        method startSequence

                                        startSequence: (tag?: number) => void;

                                          method writeBoolean

                                          writeBoolean: (b: boolean, tag?: number) => void;

                                            method writeBuffer

                                            writeBuffer: (buf: any, tag: number) => void;

                                              method writeByte

                                              writeByte: (b: number) => void;

                                                method writeEnumeration

                                                writeEnumeration: (i: number, tag?: number) => void;

                                                  method writeInt

                                                  writeInt: (i: number, tag?: number) => void;

                                                    method writeLength

                                                    writeLength: (len: number) => void;

                                                      method writeNull

                                                      writeNull: () => void;

                                                        method writeOID

                                                        writeOID: (s: string, tag: number) => void;

                                                          method writeString

                                                          writeString: (s: string, tag?: number) => void;

                                                            method writeStringArray

                                                            writeStringArray: (strings: ReadonlyArray<string>) => void;

                                                              Namespaces

                                                              namespace Ber

                                                              namespace Ber {}

                                                                variable BitString

                                                                const BitString: number;

                                                                  variable BMPString

                                                                  const BMPString: number;

                                                                    variable Boolean

                                                                    const Boolean: number;

                                                                      variable CharacterString

                                                                      const CharacterString: number;

                                                                        variable Constructor

                                                                        const Constructor: number;

                                                                          variable Context

                                                                          const Context: number;

                                                                            variable Enumeration

                                                                            const Enumeration: number;

                                                                              variable EOC

                                                                              const EOC: number;

                                                                                variable External

                                                                                const External: number;

                                                                                  variable GeneralizedTime

                                                                                  const GeneralizedTime: number;

                                                                                    variable GeneralString

                                                                                    const GeneralString: number;

                                                                                      variable GraphicString

                                                                                      const GraphicString: number;

                                                                                        variable IA5String

                                                                                        const IA5String: number;

                                                                                          variable Integer

                                                                                          const Integer: number;

                                                                                            variable Null

                                                                                            const Null: number;

                                                                                              variable NumericString

                                                                                              const NumericString: number;

                                                                                                variable ObjectDescriptor

                                                                                                const ObjectDescriptor: number;

                                                                                                  variable OctetString

                                                                                                  const OctetString: number;

                                                                                                    variable OID

                                                                                                    const OID: number;

                                                                                                      variable PDV

                                                                                                      const PDV: number;

                                                                                                        variable PrintableString

                                                                                                        const PrintableString: number;

                                                                                                          variable Real

                                                                                                          const Real: number;

                                                                                                            variable RelativeOID

                                                                                                            const RelativeOID: number;

                                                                                                              variable Sequence

                                                                                                              const Sequence: number;

                                                                                                                variable Set

                                                                                                                const Set: number;

                                                                                                                  variable T61String

                                                                                                                  const T61String: number;

                                                                                                                    variable UniversalString

                                                                                                                    const UniversalString: number;

                                                                                                                      variable UTCTime

                                                                                                                      const UTCTime: number;

                                                                                                                        variable Utf8String

                                                                                                                        const Utf8String: number;

                                                                                                                          variable VideotexString

                                                                                                                          const VideotexString: number;

                                                                                                                            variable VisibleString

                                                                                                                            const VisibleString: number;

                                                                                                                              Package Files (1)

                                                                                                                              Dependencies (1)

                                                                                                                              Dev Dependencies (0)

                                                                                                                              No dev dependencies.

                                                                                                                              Peer Dependencies (0)

                                                                                                                              No peer dependencies.

                                                                                                                              Badge

                                                                                                                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                                                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/asn1.

                                                                                                                              • Markdown
                                                                                                                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/asn1)
                                                                                                                              • HTML
                                                                                                                                <a href="https://www.jsdocs.io/package/@types/asn1"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>