You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// An array of length <see cref="Dimensions"/> indicating the shape of the memory as an n-dimensional array.
53
53
/// </summary>
54
-
publiclong[]Shape{get;privateset;}
54
+
publiclong[]?Shape{get;privateset;}
55
55
56
56
/// <summary>
57
57
/// An array of length <see cref="Dimensions"/> giving the number of bytes to skip to get to a new element in each dimension.
58
58
/// Will be null except when PyBUF_STRIDES or PyBUF_INDIRECT flags in GetBuffer/>.
59
59
/// </summary>
60
-
publiclong[]Strides{get;privateset;}
60
+
publiclong[]?Strides{get;privateset;}
61
61
62
62
/// <summary>
63
63
/// An array of Py_ssize_t of length ndim. If suboffsets[n] >= 0,
64
64
/// the values stored along the nth dimension are pointers and the suboffset value dictates how many bytes to add to each pointer after de-referencing.
65
65
/// A suboffset value that is negative indicates that no de-referencing should occur (striding in a contiguous memory block).
/// If this function is used as part of a getbufferproc, exporter MUST be set to the exporting object and flags must be passed unmodified.Otherwise, exporter MUST be NULL.
163
163
/// </remarks>
164
164
/// <returns>On success, set view->obj to a new reference to exporter and return 0. Otherwise, raise PyExc_BufferError, set view->obj to NULL and return -1;</returns>
privatebooldisposedValue=false;// To detect redundant calls
217
223
218
-
privatevoidDispose(booldisposing)
224
+
/// <summary>
225
+
/// Release the buffer view and decrement the reference count for view->obj. This function MUST be called when the buffer is no longer being used, otherwise reference leaks may occur.
226
+
/// It is an error to call this function on a buffer that was not obtained via <see cref="PyObject.GetBuffer"/>.
/// Release the buffer view and decrement the reference count for view->obj. This function MUST be called when the buffer is no longer being used, otherwise reference leaks may occur.
248
-
/// It is an error to call this function on a buffer that was not obtained via <see cref="PyObject.GetBuffer"/>.
0 commit comments