@types/asn1

  • Version 0.2.4
  • Published
  • 5.67 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: Buffer);

      property buffer

      readonly buffer: Buffer;

        property length

        readonly length: number;

          property offset

          readonly offset: number;

            property remain

            readonly remain: number;

              method peek

              peek: () => number | null;

                method readBoolean

                readBoolean: () => boolean | null;

                  method readByte

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

                    method readEnumeration

                    readEnumeration: () => number | null;

                      method readInt

                      readInt: () => number | null;

                        method readLength

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

                          method readOID

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

                            method readSequence

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

                              method readString

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

                                class BerWriter

                                class BerWriter {}

                                  constructor

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

                                    property buffer

                                    readonly buffer: Buffer;

                                      method endSequence

                                      endSequence: () => void;

                                        method startSequence

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

                                          method writeBoolean

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

                                            method writeBuffer

                                            writeBuffer: (buf: Buffer, 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: readonly 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>