summaryrefslogtreecommitdiff
path: root/xgbgen/bufcount.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-04-29 14:09:03 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-04-29 14:09:03 -0400
commitf8f11e1419e4cf86189ccb9964b8235cef90eb4f (patch)
tree402041713e5adb5dbbbdc6563e3946a926dec9c1 /xgbgen/bufcount.go
parenteb4f8cde88068649a60c494168490cb66335944c (diff)
last commit before i tear everything down
Diffstat (limited to 'xgbgen/bufcount.go')
-rw-r--r--xgbgen/bufcount.go15
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
+}
+