PgByteWriter
Optimized buffer for building binary packets for the database. Allows reserving space for size and filling it later without memory copying.
Properties
Functions
Link copied to clipboard
Calculates the number of bytes added since reserveLengthInt was called and writes this value at the marker. Does not include the 4 bytes of the marker itself (in accordance with many PG structures).
Link copied to clipboard
Leaves 4 bytes of space for a number (e.g. packet size) and returns the index where this size should be written later.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard