PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ flatgeobuf_check_magicbytes()

void flatgeobuf_check_magicbytes ( struct flatgeobuf_decode_ctx ctx)

Definition at line 268 of file flatgeobuf.c.

269{
270 uint8_t *buf = ctx->ctx->buf + ctx->ctx->offset;
271 uint32_t i;
272
273 for (i = 0; i < FLATGEOBUF_MAGICBYTES_SIZE / 2; i++)
274 if (buf[i] != flatgeobuf_magicbytes[i])
275 elog(ERROR, "Data is not FlatGeobuf");
276 ctx->ctx->offset += FLATGEOBUF_MAGICBYTES_SIZE;
277}
flatgeobuf_ctx * ctx
Definition flatgeobuf.h:62

References flatgeobuf_decode_ctx::ctx.

Referenced by pgis_fromflatgeobuf(), and pgis_tablefromflatgeobuf().

Here is the caller graph for this function: