Ejemplo n.º 1
0
            // id must be in sync with interop_helpers.c
            static int getOffset(uint id)
            {
                var offset = LibENet.InteropHelperSizeOrOffset(id);

                if (offset == new IntPtr(-1))
                {
                    throw new ENetException("Size-or-Offset identifier mismatch.");
                }
                return(offset.ToInt32());
            }