How can I get the length of the buffer data in the dissector function. Type userdatain lua, it points to raw memory. I tried converting it to metatable, but still can't get its length.
userdata
try it
function dissector(buffer,pinfo,tree) print(buffer:len()) end
Source: https://habr.com/ru/post/1526409/More articles:Как разбить не-английский текст на составляющие символы в javascript? - javascriptWhat is uuid ossp in postgres - uuidIE 11 renders CSS differently from other browsers - htmlмаркер Google Maps, определенный в макете XML - androidDisable Spring Boot AutoConfiguration for transitive dependencies - springHow to disable explicit stack traces on a Ruby on Rails website - ruby | fooobar.comImport sample project into eclipse - androidHow to configure% PATH% for dynamically loaded native dlls? - c #Unboxing Nullable when the Emitting code for a method leaves the evaluation stack in an unexpected (for me) state - c #Редактировать на месте Метеорный просмотр без использования сеанса - meteorAll Articles