// minLength is the minimum length of a field of the given type, in bytes.
minLength is the minimum length of a field of the given type, in bytes.
// minLength is the minimum length of a field of the given type in bytes .
func (t FieldType) minLength() int {
	switch t {
	case Uint8, Int8, Boolean, Uint16, Int16, Uint32, Int32, Uint64, Int64:
		return 1 
	case Float32, DateTimeSeconds:
		return 4
	case Float64, DateTimeMilliseconds, DateTimeMicroseconds, DateTimeNanoseconds:
		return 8
	case MacAddress:
		return 6
	case Ipv4Address:
		return 4
	case Ipv6Address:
		return 16
	default:
		return 0
	}
}
func ( t FieldType ) minLength ( ) int { switch t { case Uint8 , Int8 , Boolean , Uint16 , Int16 , Uint32 , Int32 , Uint64 , Int64 : return 1 case Float32 , DateTimeSeconds : return 4 case Float64 , DateTimeMilliseconds , DateTimeMicroseconds , DateTimeNanoseconds : return 8 case MacAddress : return 6 case Ipv4Address : return 4 case Ipv6Address : return 16 default : return 0 } }
minLength is the minimum length of a field of the given type, in bytes.
minLength is the minimum length of a field of the given type in bytes .
// all integers can be reduced-size encoded