Skip to content

PeerDB-io/gluaflatbuffers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Licensed under Apache V2 as the files are a derivative work of https://github.com/google/flatbuffers/tree/master/lua

This Go port exists for 3 reasons:

  1. upstream lua generator assumes 5.3 (relies on string.unpack/string.pack/integer) despite compatibiltiy shims. gopher-lua is 5.1+goto. So need the code to work with 64 bit integers while Lua 5.1 numbers are all float64
  2. their lua runtime library has some flaws, like encoding bool as ascii "0" or "1" instead of "\0" or "\1"
  3. last & definitely least, perf

There are currently some issues with flatc lua output, this fork should be used until those fixes are merged upstream

To properly support 64 byte integers, this library supports encoding UserData with Value of int64 or uint64

About

flatbuffers runtime compatible with gopher-lua

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages