hermes-json-0.2.0.1: Fast JSON decoding via simdjson C++ bindings
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Hermes.SIMDJSON.Wrapper

Description

Contains functions for constructing and working with foreign simdjson instances.

Synopsis

Documentation

getDocumentInfo :: Document -> IO (Text, Text) Source #

Read the document location and debug string. If the iterator is out of bounds then we abort reading from the iterator buffers to prevent reading garbage.

withInputBuffer :: ByteString -> (InputBuffer -> IO a) -> IO a Source #

Construct a simdjson:padded_string from a Haskell ByteString, and pass it to a monadic action. The instance lifetime is managed by the bracket function.