doc/userguide: improve SCStreamingBuffer example

Add direction indication in SCStreamingBuffer usage example.
This adds documentation for the changes introduced by commit
5b1d8c7e94.
pull/9355/head
Alexandre Iooss 2 years ago committed by Victor Julien
parent 2786ccb086
commit c80941dd8d

@ -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

Loading…
Cancel
Save