Lines Matching defs:format
21 std::string format; // For homogeneous buffers, this should be set to format_descriptor<T>::format()
28 buffer_info(void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim,
30 : ptr(ptr), itemsize(itemsize), size(1), format(format), ndim(ndim),
40 : buffer_info(private_ctr_tag(), ptr, sizeof(T), format_descriptor<T>::format(), static_cast<ssize_t>(shape_in->size()), std::move(shape_in), std::move(strides_in)) { }
42 buffer_info(void *ptr, ssize_t itemsize, const std::string &format, ssize_t size)
43 : buffer_info(ptr, itemsize, format, 1, {size}, {itemsize}) { }
47 : buffer_info(ptr, sizeof(T), format_descriptor<T>::format(), size) { }
50 : buffer_info(view->buf, view->itemsize, view->format, view->ndim,
67 format = std::move(rhs.format);
83 buffer_info(private_ctr_tag, void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim,
85 : buffer_info(ptr, itemsize, format, ndim, std::move(shape_in), std::move(strides_in)) { }
95 return b.format == format_descriptor<T>::format() && b.itemsize == (ssize_t) sizeof(T);
101 return (size_t) b.itemsize == sizeof(T) && (b.format == format_descriptor<T>::value ||
102 ((sizeof(T) == sizeof(long)) && b.format == (std::is_unsigned<T>::value ? "L" : "l")) ||
103 ((sizeof(T) == sizeof(size_t)) && b.format == (std::is_unsigned<T>::value ? "N" : "n")));