File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,10 +170,10 @@ Fine provides implementations for the following types:
170170> talking about UTF-8 encoded strings or arbitrary binaries.
171171>
172172> However, when dealing with large binaries, it is preferable for the
173- > NIF to accept ` ErlNifBinary ` or ` std::string_view ` as arguments and
173+ > NIF to accept ` std::string_view ` ( or ` ErlNifBinary ` ) as arguments and
174174> deal with the raw data explicitly, which is zero-copy. That said,
175- > keep in mind that ` ErlNifBinary ` and ` std::string_view ` are
176- > read-only and only valid during the NIF call lifetime.
175+ > keep in mind that those objects are read-only pointers to the data
176+ > and they are valid only during the NIF call lifetime.
177177>
178178> Since Elixir binaries are not zero-terminated, the use of
179179> ` std::string ` is recommended when interfacing with C APIs, although
You can’t perform that action at this time.
0 commit comments