@@ -41,7 +41,7 @@ namespace pdal
4141 * @see pdal::PointView::size
4242 *
4343 * @param view The point view
44- * @return The number of points
44+ * @return The number of points or zero if `view` is NULL
4545 */
4646 PDAL_C_API uint64_t PDALGetPointViewSize (PDALPointViewPtr view);
4747
@@ -51,7 +51,7 @@ namespace pdal
5151 * @see pdal::PointView::empty
5252 *
5353 * @param view The point view
54- * @return Whether the point view is empty
54+ * @return Whether the point view is empty or `false` if `view` is NULL
5555 */
5656 PDAL_C_API bool PDALIsPointViewEmpty (PDALPointViewPtr view);
5757
@@ -61,7 +61,7 @@ namespace pdal
6161 * @see pdal::PointView::makeNew
6262 *
6363 * @param view The original point view
64- * @return A pointer to the new point view
64+ * @return A pointer to the new point view or NULL if `view` is NULL
6565 */
6666 PDAL_C_API PDALPointViewPtr PDALClonePointView (PDALPointViewPtr view);
6767
@@ -74,6 +74,7 @@ namespace pdal
7474 * @param[out] proj The buffer used to hold the resulting proj4 projection string
7575 * @param size The size of the proj4 projection string buffer
7676 * @return The size of the resulting proj4 projection string
77+ * or zero if the `proj` buffer is NULL or the buffer `size` is zero
7778 */
7879 PDAL_C_API size_t PDALGetPointViewProj4 (PDALPointViewPtr view, char *proj, size_t size);
7980
@@ -86,6 +87,7 @@ namespace pdal
8687 * @param size The size of the wkt projection string buffer
8788 * @param pretty Whether to enhance the formatting of the resulting WKT string
8889 * @return The size of the resulting WKT projection string
90+ * or zero if the `wkt` buffer is NULL or the buffer `size` is zero
8991 */
9092 PDAL_C_API size_t PDALGetPointViewWkt (PDALPointViewPtr view, char *wkt, size_t size, bool pretty);
9193
@@ -96,7 +98,7 @@ namespace pdal
9698 * layout pointed by the return value. Do not free the returned pointer.
9799 *
98100 * @param view The point view
99- * @return The point layout
101+ * @return The point layout or NULL if `view` is NULL
100102 */
101103 PDAL_C_API PDALPointLayoutPtr PDALGetPointViewLayout (PDALPointViewPtr view);
102104
@@ -109,7 +111,8 @@ namespace pdal
109111 * @param dims List of dimensions to retrieve
110112 * @param idx Index of point to get
111113 * @param[out] buf Pointer to buffer to fill
112- * @return The size of the point stored in `buf`
114+ * @return The size of the retrieved point
115+ * or zero if view` is NULL, `dims` is NULL, `buf` is NULL, or `idx` is out of bounds
113116 */
114117 PDAL_C_API size_t PDALGetPackedPoint (PDALPointViewPtr view, PDALDimTypeListPtr dims, PDALPointId idx, char *buf);
115118
@@ -123,6 +126,7 @@ namespace pdal
123126 * @param idx Index of point to get
124127 * @param[out] buf Pointer to buffer to fill
125128 * @return The size of the points stored in `buf`
129+ * or zero if `view` is NULL, `dims` is NULL, or `buf` is NULL
126130 */
127131 PDAL_C_API uint64_t PDALGetAllPackedPoints (PDALPointViewPtr view, PDALDimTypeListPtr dims, char *buf);
128132
0 commit comments