mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
Updated comments and fixed a fundamental type error. (#6214)
* Updated comments and fixed a fundemental type error. * bump rust flatbuffers semver Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "flatbuffers"
|
||||
version = "0.6.3"
|
||||
version = "0.7.0"
|
||||
edition = "2018"
|
||||
authors = ["Robert Winslow <hello@rwinslow.com>", "FlatBuffers Maintainers"]
|
||||
license = "Apache-2.0"
|
||||
|
||||
@@ -49,15 +49,14 @@ pub const SIZE_VOFFSET: usize = SIZE_I16;
|
||||
|
||||
pub const SIZE_SIZEPREFIX: usize = SIZE_UOFFSET;
|
||||
|
||||
/// SOffsetT is an i32 that is used by tables to reference their vtables.
|
||||
/// SOffsetT is a relative pointer from tables to their vtables.
|
||||
pub type SOffsetT = i32;
|
||||
|
||||
/// UOffsetT is a u32 that is used by pervasively to represent both pointers
|
||||
/// and lengths of vectors.
|
||||
/// UOffsetT is used represent both for relative pointers and lengths of vectors.
|
||||
pub type UOffsetT = u32;
|
||||
|
||||
/// VOffsetT is a i32 that is used by vtables to store field data.
|
||||
pub type VOffsetT = i16;
|
||||
/// VOffsetT is a relative pointer in vtables to point from tables to field data.
|
||||
pub type VOffsetT = u16;
|
||||
|
||||
/// TableFinishedWIPOffset marks a WIPOffset as being for a finished table.
|
||||
#[derive(Clone, Copy)]
|
||||
|
||||
Reference in New Issue
Block a user