Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Dox
  • Loading branch information
nyalldawson committed Sep 17, 2020
1 parent d4a2ddd commit 44fb4f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions python/core/auto_generated/raster/qgsrasterblock.sip.in
Expand Up @@ -65,8 +65,14 @@ This method does not return ``True`` if size is not zero and all values are
%End

static int typeSize( int dataType ) /HoldGIL/;
%Docstring
Returns the size in bytes for the specified ``dataType``.
%End

int dataTypeSize() const /HoldGIL/;
%Docstring
Data type size in bytes.
%End

static bool typeIsNumeric( Qgis::DataType type );
%Docstring
Expand Down
8 changes: 6 additions & 2 deletions src/core/raster/qgsrasterblock.h
Expand Up @@ -77,7 +77,9 @@ class CORE_EXPORT QgsRasterBlock
*/
bool isEmpty() const;

// Return data type size in bytes
/**
* Returns the size in bytes for the specified \a dataType.
*/
static int typeSize( int dataType ) SIP_HOLDGIL
{
// Modified and extended copy from GDAL
Expand Down Expand Up @@ -113,7 +115,9 @@ class CORE_EXPORT QgsRasterBlock
}
}

// Data type in bytes
/**
* Data type size in bytes.
*/
int dataTypeSize() const SIP_HOLDGIL
{
return typeSize( mDataType );
Expand Down

0 comments on commit 44fb4f5

Please sign in to comment.