Commit Graph

26 Commits

Author SHA1 Message Date
Adrien Bertrand
1d3ebe04cf
metatables: feature to toggle (de)serializing them. Fix #21. (#22) 2021-02-14 18:53:02 +00:00
Jasmijn Wellner
c08f169e91 Do not try to serialize metatables for class instances 2020-12-26 15:15:53 +01:00
Jasmijn Wellner
02476589e3 Add ability to serialize metatables 2020-12-26 14:22:57 +01:00
Jasmijn Wellner
d30f0c7aca Fixed #18
Bug was that Buffer_newDataReader() assumed buf is always writable,
which isn't the case after reading from a static buffer. Added a
separate flag to describe the nature of buf.
2020-12-26 13:58:14 +01:00
R.E.J. Wellner
884aa8bdc6 Release version 1.1 2020-04-29 20:37:17 +02:00
R.E.J. Wellner
1a9f3d7631 Don't add cdata to seen! 2020-04-29 01:42:38 +02:00
R.E.J. Wellner
caf972ca80 Add support for cdata
More testing needed
2020-04-28 16:51:41 +02:00
R.E.J. Wellner
5a134b4fce Close #13
Turns out I never fixed this one bug...
2020-04-27 19:47:09 +02:00
Robin Wellner
214ad35f62
Fix #1 with the solution by @pgimeno 2018-11-30 13:17:27 +00:00
Robin Wellner
e817e4de28
Close #12 (serialization bug for string "len")
Thanks to nikki93 for spotting the issue and suggesting this solution.
2018-11-04 13:07:19 +00:00
Robert Machmer
4f2680317c Add assertions for dumpLoveFile and loadLoveFile (#11)
This will print useful error messages instead of just failing silently.

E.g.:
`lib/Bitser.lua:370: Could not open file prabs/test.lua. Does not exist.`
2018-02-20 18:38:47 +01:00
buckle2000
3571bdb928 Adds support for Moonscript classes (#6)
Many thanks to @buckle2000
2017-01-08 02:18:11 +01:00
Kyle McLamb
4fe34942c0 Fix reference serialization inside classes 2016-05-11 00:57:41 -04:00
Robin Wellner
60006de9f0 Oops 2016-02-23 13:15:53 +01:00
Robin Wellner
63a512707c Fixes that I forgot to add 2016-02-23 13:00:41 +01:00
Robin Wellner
06d5b69b61 Actually, going ahead and replacing the implementation
Thanks to git I can always roll back if this was a bad idea
2016-02-23 12:44:46 +01:00
Robin Wellner
40f5cab917 Actually pass size along 2016-02-16 02:48:39 +01:00
Robin Wellner
6b8208a991 Prevent reading past the end of the buffer 2016-02-16 02:45:24 +01:00
Robin Wellner
f82fda79fc Release under ISC license 2016-02-16 02:35:43 +01:00
Robin Wellner
c624623efe add ability to load from raw data
see https://love2d.org/wiki/Data:getPointer
2016-02-16 02:08:07 +01:00
Robin Wellner
0d0bb54405 Fix sloppy errors (forgot to pass an argument, haserror -> has_error) 2016-02-15 15:24:07 +01:00
Robin Wellner
90acb62c42 Actually pass the buffer to write_string for class names 2016-02-15 14:44:18 +01:00
Robin Wellner
80c130ea8d forgot to actually register the class i was testing 2016-02-15 14:39:41 +01:00
Robin Wellner
5d27470cce more testing and lint stuff 2016-02-15 14:34:52 +01:00
Robin Wellner
3c51639de7 travis-based fixes 2016-02-15 14:12:51 +01:00
Robin Wellner
481c3edc53 add first version, including benchmarks
(put binser, Ser, Smallfolk or Serpent here to compare bitser to them)
2016-02-14 03:52:58 +01:00