@classmethod
def from_bytes(cls, byte_seq, num_items, mode=None, endianness=None):
    """Create a :py:class:`SFFVertices` object using a bytes object

        :param byte_seq: the data as a base64-encoded sequence; can be bytes or unicode
        :type byte_seq: bytes or unicode
        :param int num_vertices: the number of vertices contained (for validation)
        :param mode: the size of each voxel; valid values are: `int8`, `uint8`, `int16`, `uint16`, `int32`, `uint32`, `int64`, `uint64``float32`, `float64`
        :type mode: bytes or str or unicode
        :param endianness: byte ordering: ``little`` (default) or ``big``
        :type endianness: bytes or str or unicode
        :return: a :py:class:`SFFVertices` object
        :rtype: :py:class:`SFFVertices`
        """
    if mode is None:
        mode = cls.default_mode
    if endianness is None:
        endianness = cls.default_endianness
    kwargs = {cls.num_items_kwarg: num_items, 'mode': mode, 'endianness':
        endianness, 'data': byte_seq}
    obj = cls(**kwargs)
    return obj
