Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tony Hillerson <tony.hillerson@gmail.com>
- Loading branch information
1 parent
39ccebd
commit 48cae1d
Showing
5 changed files
with
107 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
module AMF | ||
module Constants | ||
# Standard Types Markers | ||
UNDEFINED_MARKER = "\000" #0x00 | ||
NULL_MARKER = "\001" #0x01 | ||
FALSE_MARKER = "\002" #0x02 | ||
TRUE_MARKER = "\003" #0x03 | ||
INTEGER_MARKER = "\004" #0x04 | ||
DOUBLE_MARKER = "\005" #0x05 | ||
STRING_MARKER = "\006" #0x06 | ||
XML_DOC_MARKER = "\a" #0x07 | ||
DATE_MARKER = "\b" #0x08 | ||
ARRAY_MARKER = "\t" #0x09 | ||
OBJECT_MARKER = "\n" #0x0A | ||
XML_MARKER = "\v" #0x0B | ||
BYTE_ARRAY_MARKER = "\f" #0x0C | ||
|
||
# Standard Types Markers | ||
UNDEFINED_MARKER = 0x00 | ||
NULL_MARKER = 0x01 | ||
FALSE_MARKER = 0x02 | ||
TRUE_MARKER = 0x03 | ||
INTEGER_MARKER = 0x04 | ||
DOUBLE_MARKER = 0x05 | ||
STRING_MARKER = 0x06 | ||
XML_DOC_MARKER = 0x07 | ||
DATE_MARKER = 0x08 | ||
ARRAY_MARKER = 0x09 | ||
OBJECT_MARKER = 0x0A | ||
XML_MARKER = 0x0B | ||
BYTE_ARRAY_MARKER = 0x0C | ||
|
||
# Other Markers, some reused | ||
EMPTY_STRING = NULL_MARKER | ||
ONE = NULL_MARKER | ||
ANONYMOUS_OBJECT = NULL_MARKER | ||
DYNAMIC_OBJECT = XML_MARKER | ||
CLOSE_DYNAMIC_OBJECT = NULL_MARKER | ||
CLOSE_DYNAMIC_ARRAY = NULL_MARKER | ||
# Other Markers, some reused | ||
EMPTY_STRING = NULL_MARKER | ||
ONE = NULL_MARKER | ||
ANONYMOUS_OBJECT = NULL_MARKER | ||
DYNAMIC_OBJECT = XML_MARKER | ||
CLOSE_DYNAMIC_OBJECT = NULL_MARKER | ||
CLOSE_DYNAMIC_ARRAY = NULL_MARKER | ||
|
||
MAX_INTEGER = 268435455 | ||
MIN_INTEGER = -268435456 | ||
|
||
end | ||
MAX_INTEGER = 268435455 | ||
MIN_INTEGER = -268435456 | ||
end |
Oops, something went wrong.