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:
Casper
2020-10-28 19:23:22 -07:00
committed by GitHub
parent a0182cdb11
commit 14ecfe4236
2 changed files with 5 additions and 6 deletions

View File

@@ -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"

View File

@@ -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)]