GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ASN1RT (3)

NAME

asn1rt - ASN.1 runtime support functions

CONTENTS

Description
Exports

DESCRIPTION

Warning:
All functions in this module are deprecated and will be removed in a future release.

EXPORTS

decode(Module,Type,Bytes) -> {ok,Value}|{error,Reason}

Types:

Module = Type = atom()
Value = Reason = term()
Bytes = binary

Decodes Type from Module from the binary Bytes. Returns {ok,Value} if successful.

Use Module:decode(Type, Bytes) instead of this function.

encode(Module,Type,Value)-> {ok,Bytes} | {error,Reason}

Types:

Module = Type = atom()
Value = term()
Bytes = binary
Reason = term()

Encodes Value of Type defined in the ASN.1 module Module. Returns a binary if successful. To get as fast execution as possible, the encode function performs only the rudimentary test that input Value is a correct instance of Type. For example, the length of strings is not always checked.

Use Module:encode(Type, Value) instead of this function.

info(Module) -> {ok,Info} | {error,Reason}

Types:

Module = atom()
Info = list()
Reason = term()

Returns the version of the ASN.1 compiler that was used to compile the module. It also returns the compiler options that were used.

Use Module:info() instead of this function.

utf8_binary_to_list(UTF8Binary) -> {ok,UnicodeList} | {error,Reason}

Types:

UTF8Binary = binary()
UnicodeList = [integer()]
Reason = term()

Transforms a UTF8 encoded binary to a list of integers, where each integer represents one character as its unicode value. The function fails if the binary is not a properly encoded UTF8 string.

Use unicode:characters_to_list/1 instead of this function.

utf8_list_to_binary(UnicodeList) -> {ok,UTF8Binary} | {error,Reason}

Types:

UnicodeList = [integer()]
UTF8Binary = binary()
Reason = term()

Transforms a list of integers, where each integer represents one character as its unicode value, to a UTF8 encoded binary.

Use unicode:characters_to_binary/1 instead of this function.

Search for    or go to Top of page |  Section 3 |  Main Index


Ericsson AB ASN1RT (3) asn1 4.0.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.