generic json for fix messages
This commit is contained in:
@ -86,6 +86,16 @@ func (tv TagValue) String() string {
|
||||
return string(tv.bytes)
|
||||
}
|
||||
|
||||
// Tag returns the FIX tag for this TagValue.
|
||||
func (tv TagValue) Tag() Tag {
|
||||
return tv.tag
|
||||
}
|
||||
|
||||
// Value returns the raw FIX value bytes for this TagValue.
|
||||
func (tv TagValue) Value() []byte {
|
||||
return tv.value
|
||||
}
|
||||
|
||||
func bytesTotal(bytes []byte) (total int) {
|
||||
for _, b := range bytes {
|
||||
total += int(b)
|
||||
|
||||
Reference in New Issue
Block a user