moved TdsBuffer into buf.go