Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix some spelling errors and regenerate the files

  • Loading branch information...
commit 0675748414ec114a5ee6864a16d68b17f3d533e5 1 parent 683ea27
Yves Orton demerphq authored
16 Java/src/com/booking/sereal/SerealHeader.java
View
@@ -14,7 +14,7 @@
=for autoupdater start
-* NOTE this section is autoupdated by Perl/shared/author_tools/update_from_header.pl */
+* NOTE this section is autoupdated by author_tools/update_from_header.pl */
static final byte SRL_HDR_POS = (byte) 0; /* 0 0x00 0b00000000 small positive integer - value in low 4 bits (identity) */
static final byte SRL_HDR_POS_LOW = (byte) 0; /* 0 0x00 0b00000000 small positive integer - value in low 4 bits (identity) */
static final byte SRL_HDR_POS_HIGH = (byte) 15; /* 15 0x0f 0b00001111 small positive integer - value in low 4 bits (identity) */
@@ -41,25 +41,25 @@
static final byte SRL_HDR_REGEXP = (byte) 49; /* 49 0x31 0b00110001 <PATTERN-STR-TAG> <MODIFIERS-STR-TAG> */
static final byte SRL_HDR_RESERVED = (byte) 50; /* 50 0x32 0b00110010 reserved */
static final byte SRL_HDR_RESERVED_LOW = (byte) 50; /* 50 0x32 0b00110010 reserved */
- static final byte SRL_HDR_RESERVED_HIGH = (byte) 57; /* 57 0x39 0b00111001 */
+ static final byte SRL_HDR_RESERVED_HIGH = (byte) 57; /* 57 0x39 0b00111001 reserved */
static final byte SRL_HDR_FALSE = (byte) 58; /* 58 0x3a 0b00111010 false (PL_sv_no) */
static final byte SRL_HDR_TRUE = (byte) 59; /* 59 0x3b 0b00111011 true (PL_sv_yes) */
static final byte SRL_HDR_MANY = (byte) 60; /* 60 0x3c 0b00111100 <LEN-VARINT> <TYPE-BYTE> <TAG-DATA> - repeated tag (not done yet, will be implemented in version 2) */
static final byte SRL_HDR_PACKET_START = (byte) 61; /* 61 0x3d 0b00111101 (first byte of magic string in header) */
static final byte SRL_HDR_EXTEND = (byte) 62; /* 62 0x3e 0b00111110 <BYTE> - for additional tags */
static final byte SRL_HDR_PAD = (byte) 63; /* 63 0x3f 0b00111111 (ignored tag, skip to next byte) */
- static final byte SRL_HDR_ARRAYREF_LOW = (byte) 64; /* 64 0x40 0b01000000 [<ITEM-TAG> ...] - count of itmes in low 4 bits (ARRAY must be refcnt=1) */
- static final byte SRL_HDR_ARRAYREF = (byte) 64; /* 64 0x40 0b01000000 [<ITEM-TAG> ...] - count of itmes in low 4 bits (ARRAY must be refcnt=1) */
- static final byte SRL_HDR_ARRAYREF_HIGH = (byte) 79; /* 79 0x4f 0b01001111 */
+ static final byte SRL_HDR_ARRAYREF_LOW = (byte) 64; /* 64 0x40 0b01000000 [<ITEM-TAG> ...] - count of items in low 4 bits (ARRAY must be refcnt=1) */
+ static final byte SRL_HDR_ARRAYREF = (byte) 64; /* 64 0x40 0b01000000 [<ITEM-TAG> ...] - count of items in low 4 bits (ARRAY must be refcnt=1) */
+ static final byte SRL_HDR_ARRAYREF_HIGH = (byte) 79; /* 79 0x4f 0b01001111 [<ITEM-TAG> ...] - count of items in low 4 bits (ARRAY must be refcnt=1) */
static final byte SRL_HDR_HASHREF_LOW = (byte) 80; /* 80 0x50 0b01010000 [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt=1) */
static final byte SRL_HDR_HASHREF = (byte) 80; /* 80 0x50 0b01010000 [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt=1) */
- static final byte SRL_HDR_HASHREF_HIGH = (byte) 95; /* 95 0x5f 0b01011111 */
+ static final byte SRL_HDR_HASHREF_HIGH = (byte) 95; /* 95 0x5f 0b01011111 [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt=1) */
static final byte SRL_HDR_SHORT_BINARY = (byte) 96; /* 96 0x60 0b01100000 <BYTES> - binary/latin1 string, length encoded in low 5 bits of tag */
static final byte SRL_HDR_SHORT_BINARY_LOW = (byte) 96; /* 96 0x60 0b01100000 <BYTES> - binary/latin1 string, length encoded in low 5 bits of tag */
- static final byte SRL_HDR_SHORT_BINARY_HIGH = (byte) 127; /* 127 0x7f 0b01111111 */
+ static final byte SRL_HDR_SHORT_BINARY_HIGH = (byte) 127; /* 127 0x7f 0b01111111 <BYTES> - binary/latin1 string, length encoded in low 5 bits of tag */
static final byte SRL_HDR_TRACK_FLAG = (byte) 128; /* 128 0x80 0b10000000 if this bit is set track the item */
/*
-* NOTE the above section is auto-updated by Perl/shared/author_tools/update_from_header.pl
+* NOTE the above section is auto-updated by author_tools/update_from_header.pl
=for autoupdater stop
*/
6 Perl/shared/author_tools/update_from_header.pl
View
@@ -98,9 +98,9 @@ sub update_JavaSerealHeader {
for my $name (sort { $name_to_value{$a} <=> $name_to_value{$b} } keys %name_to_value) {
my $byte = $name_to_value{$name};
- my $decl = sprintf("static final byte SRL_HDR_%-*s = (byte) %3d;", 18, $name, $byte);
- $declarations .= sprintf("\t%-*s /* %3d 0x%02x 0b%08b %s */\n",
- $max_name_length+3, $decl, $byte, $byte, $byte, $value_to_comment_expanded{$byte}||"");
+ my $decl = sprintf("static final byte SRL_HDR_%-*s = (byte) %3d;", $max_name_length+1, $name, $byte);
+ $declarations .= sprintf("\t%s /* %3d 0x%02x 0b%08b %s */\n",
+ $decl, $byte, $byte, $byte, $value_to_comment_expanded{$byte}||"");
}
$declarations .= "/*\n* NOTE the above section is auto-updated by $0";
8 Perl/shared/srl_protocol.h
View
@@ -86,8 +86,8 @@
ARRAYREF_12 | "L" | 76 | 0x4c | 0b01001100 |
ARRAYREF_13 | "M" | 77 | 0x4d | 0b01001101 |
ARRAYREF_14 | "N" | 78 | 0x4e | 0b01001110 |
- ARRAYREF_15 | "O" | 79 | 0x4f | 0b01001111 | [<ITEM-TAG> ...] - count of itmes in low 4 bits (ARRAY must be refcnt=1)
- HASHREF_0 | "P" | 80 | 0x50 | 0b01010000 | [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt= 1)
+ ARRAYREF_15 | "O" | 79 | 0x4f | 0b01001111 | [<ITEM-TAG> ...] - count of items in low 4 bits (ARRAY must be refcnt=1)
+ HASHREF_0 | "P" | 80 | 0x50 | 0b01010000 | [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt=1)
HASHREF_1 | "Q" | 81 | 0x51 | 0b01010001 |
HASHREF_2 | "R" | 82 | 0x52 | 0b01010010 |
HASHREF_3 | "S" | 83 | 0x53 | 0b01010011 |
@@ -102,7 +102,7 @@
HASHREF_12 | "\\" | 92 | 0x5c | 0b01011100 |
HASHREF_13 | "]" | 93 | 0x5d | 0b01011101 |
HASHREF_14 | "^" | 94 | 0x5e | 0b01011110 |
- HASHREF_15 | "_" | 95 | 0x5f | 0b01011111 | [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt= 1)
+ HASHREF_15 | "_" | 95 | 0x5f | 0b01011111 | [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt=1)
SHORT_BINARY_0 | "`" | 96 | 0x60 | 0b01100000 | <BYTES> - binary/latin1 string, length encoded in low 5 bits of tag
SHORT_BINARY_1 | "a" | 97 | 0x61 | 0b01100001 |
SHORT_BINARY_2 | "b" | 98 | 0x62 | 0b01100010 |
@@ -206,7 +206,7 @@
#define SRL_HDR_EXTEND ((char)62) /* <BYTE> - for additional tags */
#define SRL_HDR_PAD ((char)63) /* (ignored tag, skip to next byte) */
-#define SRL_HDR_ARRAYREF ((char)64) /* [<ITEM-TAG> ...] - count of itmes in low 4 bits (ARRAY must be refcnt=1)*/
+#define SRL_HDR_ARRAYREF ((char)64) /* [<ITEM-TAG> ...] - count of items in low 4 bits (ARRAY must be refcnt=1)*/
#define SRL_MASK_ARRAYREF_COUNT ((char)15) /* mask to get low bits from tag */
#define SRL_HDR_ARRAYREF_LOW ((char)64)
#define SRL_HDR_ARRAYREF_HIGH ((char)79)
8 sereal_spec.pod
View
@@ -199,7 +199,7 @@ SHORT_BINARY) or in a varint following the tag (such as for STRING).
PACKET_START | "=" | 61 | 0x3d | 0b00111101 | (first byte of magic string in header)
EXTEND | ">" | 62 | 0x3e | 0b00111110 | <BYTE> - for additional tags
PAD | "?" | 63 | 0x3f | 0b00111111 | (ignored tag, skip to next byte)
- ARRAYREF_0 | "\@" | 64 | 0x40 | 0b01000000 | [<ITEM-TAG> ...] - count of itmes in low 4 bits (ARRAY must be refcnt=1)
+ ARRAYREF_0 | "\@" | 64 | 0x40 | 0b01000000 | [<ITEM-TAG> ...] - count of items in low 4 bits (ARRAY must be refcnt=1)
ARRAYREF_1 | "A" | 65 | 0x41 | 0b01000001 |
ARRAYREF_2 | "B" | 66 | 0x42 | 0b01000010 |
ARRAYREF_3 | "C" | 67 | 0x43 | 0b01000011 |
@@ -214,8 +214,8 @@ SHORT_BINARY) or in a varint following the tag (such as for STRING).
ARRAYREF_12 | "L" | 76 | 0x4c | 0b01001100 |
ARRAYREF_13 | "M" | 77 | 0x4d | 0b01001101 |
ARRAYREF_14 | "N" | 78 | 0x4e | 0b01001110 |
- ARRAYREF_15 | "O" | 79 | 0x4f | 0b01001111 | [<ITEM-TAG> ...] - count of itmes in low 4 bits (ARRAY must be refcnt=1)
- HASHREF_0 | "P" | 80 | 0x50 | 0b01010000 | [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt= 1)
+ ARRAYREF_15 | "O" | 79 | 0x4f | 0b01001111 | [<ITEM-TAG> ...] - count of items in low 4 bits (ARRAY must be refcnt=1)
+ HASHREF_0 | "P" | 80 | 0x50 | 0b01010000 | [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt=1)
HASHREF_1 | "Q" | 81 | 0x51 | 0b01010001 |
HASHREF_2 | "R" | 82 | 0x52 | 0b01010010 |
HASHREF_3 | "S" | 83 | 0x53 | 0b01010011 |
@@ -230,7 +230,7 @@ SHORT_BINARY) or in a varint following the tag (such as for STRING).
HASHREF_12 | "\\" | 92 | 0x5c | 0b01011100 |
HASHREF_13 | "]" | 93 | 0x5d | 0b01011101 |
HASHREF_14 | "^" | 94 | 0x5e | 0b01011110 |
- HASHREF_15 | "_" | 95 | 0x5f | 0b01011111 | [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt= 1)
+ HASHREF_15 | "_" | 95 | 0x5f | 0b01011111 | [<KEY-TAG> <ITEM-TAG> ...] - count in low 4 bits, key/value pairs (HASH must be refcnt=1)
SHORT_BINARY_0 | "`" | 96 | 0x60 | 0b01100000 | <BYTES> - binary/latin1 string, length encoded in low 5 bits of tag
SHORT_BINARY_1 | "a" | 97 | 0x61 | 0b01100001 |
SHORT_BINARY_2 | "b" | 98 | 0x62 | 0b01100010 |
Please sign in to comment.
Something went wrong with that request. Please try again.