SqliteHeader class

The 100-byte SQLite file header, decoded.

Constructors

SqliteHeader({required int pageSize, required int fileFormatWrite, required int fileFormatRead, required int reservedSpace, required int textEncoding, required int schemaCookie, required int schemaFormat, required int userVersion, required int applicationId, required int dbSizeInPages})
const
SqliteHeader.parse(Uint8List bytes)
Parse the 100-byte header. Throws FormatException on bad magic or unsupported text encoding.
factory

Properties

applicationId → int
final
dbSizeInPages → int
final
fileFormatRead → int
final
fileFormatWrite → int
final
hashCode → int
The hash code for this object.
no setterinherited
pageSize → int
final
reservedSpace → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaCookie → int
final
schemaFormat → int
final
textEncoding → int
final
userVersion → int
final

Methods

encode() → Uint8List
Encode this header into a fresh 100-byte buffer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

magic → const List<int>