Skip to content

Commit

Permalink
doc/userguide: improve SCStreamingBuffer example
Browse files Browse the repository at this point in the history
Add direction indication in SCStreamingBuffer usage example.
This adds documentation for the changes introduced by commit
5b1d8c7.
  • Loading branch information
erdnaxe committed Jul 28, 2023
1 parent 8770431 commit 15ad513
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/userguide/lua/lua-functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,13 @@ SCStreamingBuffer
::

function log(args)
data = SCStreamingBuffer()
-- sb_ts and sb_tc are bools indicating the direction of the data
data, sb_open, sb_close, sb_ts, sb_tc = SCStreamingBuffer()
if sb_ts then
print("->")
else
print("<-")
end
hex_dump(data)
end

Expand Down

0 comments on commit 15ad513

Please sign in to comment.