aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/bufcount.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-04-29 14:09:03 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-04-29 14:09:03 -0400
commit3115c13e88badfd3b6b1762f2239edbf9d0b8951 (patch)
treed6f43e521b496953faae7788d0b74bd13f6dda1c /nexgb/xgbgen/bufcount.go
parent6bf0191fb01f4c0b65bcd444bb5381013c627f95 (diff)
downloadhaven-3115c13e88badfd3b6b1762f2239edbf9d0b8951.tar.gz
haven-3115c13e88badfd3b6b1762f2239edbf9d0b8951.tar.xz
haven-3115c13e88badfd3b6b1762f2239edbf9d0b8951.zip
last commit before i tear everything down
Diffstat (limited to 'nexgb/xgbgen/bufcount.go')
-rw-r--r--nexgb/xgbgen/bufcount.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/nexgb/xgbgen/bufcount.go b/nexgb/xgbgen/bufcount.go
new file mode 100644
index 0000000..c3a5645
--- /dev/null
+++ b/nexgb/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
+}
+