Structure
MySQLProtocol.NullBitmap
14.7.2.1 NULL-Bitmap
struct NullBitmap
Overview
The binary protocol sends NULL values as bits inside a bitmap instead of a full byte as the ProtocolText::ResultsetRow does. If many NULL values are sent, it is more efficient than the old way.
https://dev.mysql.com/doc/internals/en/null-bitmap.html
Topics
Instance Properties
bytesthe raw bitmap bytes.descriptionSeeCustomStringConvertible.descriptionoffsetThis bitmap’s static offset. This varies depending on which packet the bitmap is being used in.
Instance Methods
isNull(at:)Returnstrueif the bitmap is null at the supplied position.setNull(at:)Sets the position to null.
Type Methods
binaryResultSetBitmap(bytes:)Creates a newMySQLNullBitmapsuitable for binary result set packets.comExecuteBitmap(count:)Creates a newMySQLNullBitmapsuitable for com statement execute packets.readResultSetNullBitmap(count:from:)Reads aMySQLNullBitmapfor binary result sets from theByteBuffer.
Relationships
Conforms To
Swift.CustomStringConvertible