| QGIS API Documentation
    3.16.0-Hannover (43b64b13f3)
    | 
 
 
 
Go to the documentation of this file.
   20   mP = 
reinterpret_cast<unsigned char *
>( wkb.data() );
 
   22   mEnd = mP + wkb.length();
 
   32 void QgsWkbPtr::verifyBound( 
int size )
 const 
   34   if ( !mP || mP + 
size > mEnd )
 
   40   mP = 
reinterpret_cast< unsigned char * 
>( 
const_cast<char *
>( wkb.constData() ) );
 
   48   mP = 
const_cast< unsigned char * 
>( p );
 
   86   Q_ASSERT( skipZM >= 0 );
 
   91   points.resize( nPoints );
 
   92   QPointF *ptr = points.data();
 
   94   for ( 
unsigned int i = 0; i < nPoints; ++i, ++ptr )
 
  
QgsConstWkbPtr(const QByteArray &wkb)
Construct WKB pointer from QByteArray.
Type
The WKB type describes the number of dimensions a geometry has.
static int coordDimensions(Type type) SIP_HOLDGIL
Returns the coordinate dimension of the geometry type as an integer.
QgsWkbTypes::Type mWkbType
Custom exception class for Wkb related exceptions.
const QgsConstWkbPtr & operator>>(double &v) const
static endian_t endian()
Returns whether this machine uses big or little endian.
QgsWkbPtr(QByteArray &wkb)
Construct WKB pointer from QByteArray.
void verifyBound(int size) const
Verify bounds.
QgsWkbTypes::Type readHeader() const
readHeader
void read(T &v) const
Read a value.