public IntPtr GetStringUserData(int stringNumber, IntPtr length) { return(table.GetStringUserData(stringNumber, length)); }
public TClass GetUserData(int index, IntPtr lengthOut = default(IntPtr)) { var ptr = table.GetStringUserData(index, lengthOut); return(Marshal.PtrToStructure <TClass>(ptr)); }