lib/amf/pure/serializer.rb
# if object has been referenced, returns the index of the reference
# in the implicit object reference table. If no reference is found
# sets the reference to the next index in the implicit objects table
# and returns nil.
if object has been referenced, returns the index of the reference
in the implicit object reference table. If no reference is found
sets the reference to the next index in the implicit objects table
and returns nil.
if object has been referenced returns the index of the reference in the implicit object reference table . If no reference is found sets the reference to the next index in the implicit objects table and returns nil .
def object_cache(obj)
          index = @object_cache.fetch(obj.amf_id) { |amf_id|
            @object_cache[amf_id] = @object_cache.length
            nil
          }
          header_for_cache(index) if index
        end
def object_cache ( obj ) index = @object_cache . fetch ( obj . amf_id ) { | amf_id | @object_cache [ amf_id ] = @object_cache . length nil } header_for_cache ( index ) if index end
if object has been referenced, returns the index of the reference
in the implicit object reference table.
if object has been referenced returns the index of the reference in the implicit object reference table .
obj
<not_specific>