Class: OsuRuby::Database::Datatype::Converter Private

Inherits:
Object
  • Object
show all
Defined in:
(osu-ruby2 0.0.2) osu-ruby2/database/datatype.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Note:

Anything shown in here is merely a generated value. Please consult the source code for what you want to see.

Note:

This class is instantly removed from direct references once finished instantiation of its subclasses. Only used for references.

a simple wrapper for a Psuedo-class system to encode data back and forth.

Direct Known Subclasses

Time, ULEB128

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create(name, enc, dec) ⇒ Converter

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

registers the name into the Datatype namespace with both encoding and decoding support

Returns:

Instance Method Details

#decode(x) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

convert to given data

#encode(x) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

convert to “STRING”