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