forked from osmocom/wireshark
Fix a misspelled word; Do some minor tweaking of the wording of a few comments.
svn path=/trunk/; revision=47903
This commit is contained in:
parent
8c0d526f58
commit
9e436c6c4a
|
@ -317,13 +317,13 @@ int ByteArray_register(lua_State* L) {
|
|||
*
|
||||
* a Tvb represents a tvbuff_t in Lua.
|
||||
* a TvbRange represents a range in a tvb (tvb,offset,length) its main purpose is to do bounds checking,
|
||||
* it helps too simplifing argument passing to Tree. In wireshark terms this is worthless nothing
|
||||
* not already done by the TVB itself. In lua's terms is necessary to avoid abusing TRY{}CATCH(){}
|
||||
* It helps, too, simplifying argument passing to Tree. In wireshark terms this is worthless nothing
|
||||
* not already done by the TVB itself. In lua's terms it's necessary to avoid abusing TRY{}CATCH(){}
|
||||
* via preemptive bounds checking.
|
||||
*
|
||||
* These lua objects refers to structures in wireshak that are freed independently from Lua's garbage collector.
|
||||
* To avoid using a pointer from Lua to Wireshark's that is already freed, we maintain a list of the pointers with
|
||||
* a marker that track's its expiry.
|
||||
* These lua objects refer to structures in wireshark that are freed independently from Lua's garbage collector.
|
||||
* To avoid using pointers from Lua to Wireshark structures that are already freed, we maintain a list of the
|
||||
* pointers each with a marker that tracks its expiry.
|
||||
*
|
||||
* All pointers are marked as expired when the dissection of the current frame is finished or when the garbage
|
||||
* collector tries to free the object referring to the pointer, whichever comes first.
|
||||
|
@ -562,8 +562,9 @@ WSLUA_METAMETHOD wslua__concat(lua_State* L) {
|
|||
|
||||
WSLUA_CLASS_DEFINE(TvbRange,FAIL_ON_NULL("expired tvbrange"),NOP);
|
||||
/*
|
||||
A TvbRange represents an usable range of a Tvb and is used to extract data from the Tvb that generated it
|
||||
TvbRanges are created by calling a tvb (e.g. tvb(offset,length)). If the TvbRange span is outside the Tvb's range the creation will cause a runtime error.
|
||||
A TvbRange represents a usable range of a Tvb and is used to extract data from the Tvb that generated it
|
||||
TvbRanges are created by calling a tvb (e.g. tvb(offset,length)). If the TvbRange span is outside the
|
||||
Tvb's range the creation will cause a runtime error.
|
||||
*/
|
||||
|
||||
static TvbRange new_TvbRange(lua_State* L, tvbuff_t* ws_tvb, int offset, int len) {
|
||||
|
|
Loading…
Reference in New Issue