'Convert the object *value* in the native in-memory datatype to
a string of bytes suitable for serialization in the BINARY_
format.
Parameters
value : native type corresponding to this converter
The value
mask : bool
If `True`, will return the string representation of a
masked value.
Returns
bytes : byte string
The binary representation of the value, suitable for
serialization in the BINARY_ format.'

def binoutput(self, value, mask):

    raise NotImplementedError(u"This    datatype    must    implement    a    'binoutput'    method.")
