Class: Ucp::Util::Ucs2PackedMsg

Inherits:
PackedMsg show all
Defined in:
lib/ucp/util/ucs2_packed_msg.rb

Overview

Ruby library implementation of EMI/UCP protocol v4.6 for SMS Copyright © 2011, Sergio Freire <[email protected]>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Instance Attribute Summary

Attributes inherited from PackedMsg

#chars, #encoded, #required_octets, #required_septets, #tainted, #unencoded

Instance Method Summary collapse

Constructor Details

#initialize(encoded, unencoded, chars, required_octets) ⇒ Ucs2PackedMsg

Returns a new instance of Ucs2PackedMsg.



22
23
24
25
26
27
# File 'lib/ucp/util/ucs2_packed_msg.rb', line 22

def initialize(encoded,unencoded,chars,required_octets)
  @encoded=encoded
  @unencoded=unencoded
  @chars=chars
  @required_octets=required_octets
end