Created
August 29, 2018 22:33
-
-
Save electrum/d05be32d334773e022b7d3a8f7c5efad to your computer and use it in GitHub Desktop.
Drift notes for unknown field preservation
This file contains hidden or 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
@ThriftStruct | |
class Foo { | |
@ThriftId(2); | |
String foo; | |
@ThriftId(3) | |
ThriftString foo; | |
@ThriftUnknown | |
Map<Short, ThriftObject> unknown; | |
} | |
ThriftObject: | |
ThriftString | |
ThriftBoolean | |
ThriftStruct | |
Map<Short, ThriftObject> | |
ThriftMap | |
TYPES: | |
void = Void | |
bool, byte, double, iXX | |
string = ??? | |
struct = Map<Short, ThriftObject> | |
map = ThriftMap(size, keytype, valuetype, Map<ThriftObject, ThriftObject>) | |
set = ... | |
list = ... | |
enum = int | |
WIRE: | |
type, id, ... | |
type == STOP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment