def make_memoryview(obj, offset=-1, size=-1):
    """Uses Python2 buffer syntax to make memoryview"""
    if offset < 0:
        return memoryview(obj)
    elif size < 0:
        return memoryview(obj)[offset:]
    else:
        return memoryview(obj)[offset:offset + size]
