Sha256: 9e323bc39ab1d4a780b0461b991da4c33cc6521da817f95fb4469030bf2c3a2b
Contents?: true
Size: 535 Bytes
Versions: 4
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true module RASN1 module Types # ASN.1 BmpString # @since 0.12.0 # @author adfoster-r7 class BmpString < OctetString # BmpString id value ID = 30 # Get ASN.1 type # @return [String] def self.type 'BmpString' end private def value_to_der @value.to_s.dup.encode('UTF-16BE').b end def der_to_value(der, ber: false) super @value = der.to_s.dup.force_encoding('UTF-16BE') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rasn1-0.13.1 | lib/rasn1/types/bmp_string.rb |
rasn1-0.13.0 | lib/rasn1/types/bmp_string.rb |
rasn1-0.12.1 | lib/rasn1/types/bmp_string.rb |
rasn1-0.12.0 | lib/rasn1/types/bmp_string.rb |