aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_imm.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-01-22 16:48:41 +0100
committerBjörn Gustavsson <[email protected]>2013-01-23 15:22:56 +0100
commitdc17110cd88153a74900d71d35df608f5d58c0f3 (patch)
treecb13a3bdad07d89b98c96c5292b7297efbf6f728 /lib/asn1/src/asn1ct_imm.erl
parent26182a5c8cf96fa6d255e23a6d4cd0d2c5248a69 (diff)
downloadotp-dc17110cd88153a74900d71d35df608f5d58c0f3.tar.gz
otp-dc17110cd88153a74900d71d35df608f5d58c0f3.tar.bz2
otp-dc17110cd88153a74900d71d35df608f5d58c0f3.zip
per,uper: Optimize decoding of the remaining string types
Diffstat (limited to 'lib/asn1/src/asn1ct_imm.erl')
-rw-r--r--lib/asn1/src/asn1ct_imm.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_imm.erl b/lib/asn1/src/asn1ct_imm.erl
index fca85fd778..87eadac073 100644
--- a/lib/asn1/src/asn1ct_imm.erl
+++ b/lib/asn1/src/asn1ct_imm.erl
@@ -23,7 +23,8 @@
per_dec_extension_map/1,
per_dec_integer/2,per_dec_k_m_string/3,
per_dec_length/3,per_dec_named_integer/3,
- per_dec_octet_string/2,per_dec_open_type/1,per_dec_real/1]).
+ per_dec_octet_string/2,per_dec_open_type/1,per_dec_real/1,
+ per_dec_restricted_string/1]).
-export([optimize_alignment/1,optimize_alignment/2,
dec_slim_cg/2,dec_code_gen/2]).
-export([effective_constraint/2]).
@@ -136,6 +137,11 @@ per_dec_real(Aligned) ->
{get_bits,decode_unconstrained_length(true, Aligned),
[8,binary,{align,Aligned}]}}.
+per_dec_restricted_string(Aligned) ->
+ DecLen = decode_unconstrained_length(true, Aligned),
+ {get_bits,DecLen,[8,binary]}.
+
+
%%%
%%% Local functions.
%%%