def pack_and_write( self, format, value ):
        """
        Read enough bytes to unpack according to `format` and return the
        tuple of unpacked values.
        """
        pattern = "%s%s" % ( self.endian_code, format )
        return self.file.write( struct.pack( pattern, value ) )
Read enough bytes to unpack according to `format` and return the
        tuple of unpacked values.