public T[] ReadArray <T>(IntPtr address, int count) where T : struct
        {
            var buffer = new SafeBufferWrapper(address);

            T[] ret = new T[count];
            buffer.ReadArray(0, ret, 0, count);
            return(ret);
        }
Example #2
0
        public T[] ReadArray <T>(IntPtr address, int count) where T : struct
        {
            CheckAddress(address, System.Runtime.InteropServices.Marshal.SizeOf(typeof(T)) * count);
            var buffer = new SafeBufferWrapper(address);

            T[] ret = new T[count];
            buffer.ReadArray(0, ret, 0, count);
            return(ret);
        }