Uint8List asBytes({required Encoding encoding}) { final buffer = PgByteDataWriter(encoding: encoding); applyToBuffer(buffer); return buffer.toBytes(); }