comment
This commit is contained in:
parent
7958315227
commit
92c61ea897
1 changed files with 2 additions and 0 deletions
|
@ -222,6 +222,8 @@ class String
|
||||||
# A universal octet-string is tag number 4,
|
# A universal octet-string is tag number 4,
|
||||||
# but others are possible depending on the context, so we
|
# but others are possible depending on the context, so we
|
||||||
# let the caller give us one.
|
# let the caller give us one.
|
||||||
|
# The preferred way to do this in user code is via to_ber_application_sring
|
||||||
|
# and to_ber_contextspecific.
|
||||||
#
|
#
|
||||||
def to_ber code = 4
|
def to_ber code = 4
|
||||||
[code].pack('C') + length.to_ber_length_encoding + self
|
[code].pack('C') + length.to_ber_length_encoding + self
|
||||||
|
|
Loading…
Add table
Reference in a new issue