aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/bufcount.go
blob: c3a5645ac74f21f5b1efa48e4207f86828561b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}