per

package
v1.3.4-alpha0718 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: AGPL-3.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadChoice

func ReadChoice(r io.Reader) uint8

func ReadEnumerates

func ReadEnumerates(r io.Reader) (uint8, error)

func ReadInteger

func ReadInteger(r io.Reader) uint32

func ReadInteger16

func ReadInteger16(r io.Reader) (uint16, error)

func ReadLength

func ReadLength(r io.Reader) (uint16, error)

func ReadNumberOfSet

func ReadNumberOfSet(r io.Reader) uint8

func ReadObjectIdentifier

func ReadObjectIdentifier(r io.Reader, oid []byte) bool

func ReadOctetStream

func ReadOctetStream(r io.Reader, s string, min int) bool

func WriteChoice

func WriteChoice(choice uint8, w io.Writer)

*

  • @param choice {integer}
  • @returns {type.UInt8} choice per encoded

func WriteInteger

func WriteInteger(n int, w io.Writer)

func WriteInteger16

func WriteInteger16(value uint16, w io.Writer)

func WriteLength

func WriteLength(value int, w io.Writer)

*

  • @param value {raw} value to convert to per format
  • @returns type objects per encoding value

func WriteNumberOfSet

func WriteNumberOfSet(n int, w io.Writer)

func WriteNumericString

func WriteNumericString(s string, minValue int, w io.Writer)

func WriteObjectIdentifier

func WriteObjectIdentifier(oid []byte, w io.Writer)

*

  • @param oid {array} oid to write
  • @returns {type.Component} per encoded object identifier

func WriteOctetStream

func WriteOctetStream(oStr string, minValue int, w io.Writer)

*

  • @param oStr {String}
  • @param minValue {integer} default 0
  • @returns {type.Component} per encoded octet stream

func WritePadding

func WritePadding(length int, w io.Writer)

func WriteSelection

func WriteSelection(selection uint8, w io.Writer)

*

  • @param selection {integer}
  • @returns {type.UInt8} per encoded selection

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL