Jon Skeet
6678a73b0d
For some reason the build file didn't get pushed last time
16 years ago
Jon Skeet
bceed3c198
Commit earlier deletes
16 years ago
Jon Skeet
ae87cf6e5c
Moved benchmarking code around
16 years ago
jonathan.skeet
8604c745fc
Added copyright notice, made constants constant, added GC call before each test.
16 years ago
jonathan.skeet
ff9c9e4d93
Initial benchmarking.
16 years ago
Joshua Haberman
3c515a6ce9
Very rough (doesn't even compile) pbstruct.
16 years ago
Joshua Haberman
a714989094
Detect overflow (unlikely except for malicious input).
16 years ago
The Android Open Source Project
82155ace01
auto import from //depot/cupcake/@135843
16 years ago
The Android Open Source Project
778b51ced8
auto import from //depot/cupcake/@135843
16 years ago
The Android Open Source Project
a3cc5f1795
auto import from //depot/cupcake/@132589
16 years ago
Joshua Haberman
9f56ff3b5b
Fleshed out pbstruct a bit more.
16 years ago
The Android Open Source Project
bb7bbd7c9c
auto import from //depot/cupcake/@137055
16 years ago
Joshua Haberman
5f2344e480
Fixed off-by-one error in hashtable calculation.
16 years ago
Joshua Haberman
6e67cb48ef
Fixed bugs that lint caught.
16 years ago
Joshua Haberman
268bb50e80
Enabled more warnings, fixed the warnings.
16 years ago
Joshua Haberman
2d41d385f3
Add pbstream_lowlevel.h.
16 years ago
Joshua Haberman
c8d67b2686
More refactoring of structures.
...
pbstream_internal.h is now where even lower-level parsing
functions go.
16 years ago
Joshua Haberman
73ab650ad1
Added function for skipping data.
16 years ago
Joshua Haberman
14624e34d8
Added the first iteration of pbstruct.
16 years ago
Joshua Haberman
5a31f694a7
Implemented the array part of the fieldnum lookup.
16 years ago
Joshua Haberman
e195d5379d
Since the stack has a fixed size, don't allocate dynamically.
16 years ago
Joshua Haberman
eaa0cdd6a1
Oops, malloc(array[int]) didn't do what I thought.
16 years ago
Joshua Haberman
d351981f9e
Change to a fixed stack size.
...
Proto2 only allows a nesting depth of 64, so we follow suit.
16 years ago
Joshua Haberman
e67f5d5f02
Less code duplication, joy.
16 years ago
Joshua Haberman
47fb22194c
Another test, another bugfix.
16 years ago
Joshua Haberman
e6b461c84a
More tests and bugfixes -- parses its first proto!
16 years ago
Joshua Haberman
73978bfc74
API cleanup.
16 years ago
Joshua Haberman
1aa1627fc1
Implemented the _init_parser() function.
16 years ago
Joshua Haberman
afe132eb10
Remove DYNARRAY for the stack (wasn't buying much).
16 years ago
Joshua Haberman
446d7c27ee
Rip out more stuff that belongs in higher layers.
16 years ago
Joshua Haberman
537ca81ada
Credit where credit is due.
16 years ago
Joshua Haberman
ecd855279d
Removed CALLBACK() macro and struct of callbacks.
16 years ago
Joshua Haberman
7fefc5c875
Removed DECODE macro (wasn't buying much).
...
Also decided that groups aren't a TODO -- I don't plan to ever
support them (unless there is a real need).
16 years ago
Joshua Haberman
a0a99811be
Removed bounds checking, for speed and simplicity.
...
Callers must always over-allocate their buffer by at least
ten bytes. Since we will never read *more* than ten bytes,
there is no need to do bounds checking inside the parsing
code.
16 years ago
Jon Skeet
e81a9d7c87
Added ToBuilder and WeakToBuilder
16 years ago
Joshua Haberman
a38b191e8d
Move submessage begin code to handler as well.
16 years ago
Joshua Haberman
faf6b5f3bf
Massive changes (practically a rewrite). More compact and minimal.
...
Still doesn't actually work yet, but much closer.
16 years ago
Joshua Haberman
75ee6df2ff
Newfound respect for 80 characters and for terseness.
16 years ago
Joshua Haberman
71311920a9
Fully add tests (oops) and bugfixes.
16 years ago
The Android Open Source Project
52067f67ad
auto import from //branches/cupcake/...@132276
16 years ago
Jon Skeet
25a28580a6
Support packed primitive types
16 years ago
The Android Open Source Project
f83a870b18
auto import from //branches/cupcake/...@130745
16 years ago
kenton@google.com
1556623fad
Submit files missing from previous submit.
16 years ago
Joshua Haberman
9f2f5e18f1
Small tweaks.
16 years ago
Joshua Haberman
b98433ce8c
Implementations for ZigZag decoding.
16 years ago
Joshua Haberman
5fb04a8ba5
Tests and fixes to bugs that the tests found.
16 years ago
Joshua Haberman
8064bd419e
Doh, remove .o file from the repository (that's embarrassing).
16 years ago
Joshua Haberman
6cc7230ba2
Add README and LICENSE.
16 years ago
Joshua Haberman
d29a54fc97
Initial commit.
16 years ago
Jon Skeet
0ca3fecfaf
Use atomic groups to mimic the possessive quantifier change in Java code
16 years ago