diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-04-29 14:09:03 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-04-29 14:09:03 -0400 |
| commit | f8f11e1419e4cf86189ccb9964b8235cef90eb4f (patch) | |
| tree | 402041713e5adb5dbbbdc6563e3946a926dec9c1 /xgbgen/bufcount.go | |
| parent | eb4f8cde88068649a60c494168490cb66335944c (diff) | |
last commit before i tear everything down
Diffstat (limited to 'xgbgen/bufcount.go')
| -rw-r--r-- | xgbgen/bufcount.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xgbgen/bufcount.go b/xgbgen/bufcount.go new file mode 100644 index 0000000..c3a5645 --- /dev/null +++ b/xgbgen/bufcount.go @@ -0,0 +1,15 @@ +package main + +/* + A buffer count is a mechanism by which to keep track of which byte one + is reading or writing to/from the wire. + + It's an abstraction over the fact that while such a counter is usually + fixed, it can be made variable based on values at run-time. +*/ + +type BufCount struct { + Fixed int + Exprs []*Expression +} + |
