mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 14:58:39 +00:00
Add scalar type aliases for int8, uint8, ..., f32, f64 (#4400)
* Add type aliases * Add generated code * Rebase master
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
3282a84e30
commit
f2b3705c2c
@@ -79,6 +79,21 @@ table Monster {
|
||||
vector_of_doubles:[double] (id:33);
|
||||
}
|
||||
|
||||
table TypeAliases {
|
||||
i8:int8;
|
||||
u8:uint8;
|
||||
i16:int16;
|
||||
u16:uint16;
|
||||
i32:int32;
|
||||
u32:uint32;
|
||||
i64:int64;
|
||||
u64:uint64;
|
||||
f32:float32;
|
||||
f64:float64;
|
||||
v8:[int8];
|
||||
vf64:[float64];
|
||||
}
|
||||
|
||||
rpc_service MonsterStorage {
|
||||
Store(Monster):Stat (streaming: "none");
|
||||
Retrieve(Stat):Monster (streaming: "server", idempotent);
|
||||
|
||||
Reference in New Issue
Block a user