Class: RubyAMF::IO::ByteArray
- Defined in:
- lib/revent/amf3/io/byte_array.rb
Overview
Used for sending binary data from Ruby to Flash, because the serializer cannot distinguish between a normal Ruby string and a string containing binary data.
Instance Attribute Summary collapse
-
#bytes ⇒ Object
readonly
Returns the value of attribute bytes.
Instance Method Summary collapse
-
#initialize(string) ⇒ ByteArray
constructor
A new instance of ByteArray.
Constructor Details
#initialize(string) ⇒ ByteArray
Returns a new instance of ByteArray.
9 10 11 |
# File 'lib/revent/amf3/io/byte_array.rb', line 9 def initialize(string) @bytes = string end |
Instance Attribute Details
#bytes ⇒ Object (readonly)
Returns the value of attribute bytes.
7 8 9 |
# File 'lib/revent/amf3/io/byte_array.rb', line 7 def bytes @bytes end |