Class: RubyAMF::IO::ByteArray

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#bytesObject (readonly)

Returns the value of attribute bytes.



7
8
9
# File 'lib/revent/amf3/io/byte_array.rb', line 7

def bytes
  @bytes
end