/// <summary>
        /// Makes a copy of the byte array provided for use with the reloaded
        /// data set within the provider.
        /// </summary>
        /// <param name="original">Uncompressed array of new device data</param>
        public unsafe void ReloadFromMemory(byte[] original)
        {
            fixed(byte *ptr = original)
            {
                var swigPtr = new SWIGTYPE_p_unsigned_char((IntPtr)ptr, false);

                _provider.reloadFromMemory(swigPtr, original.Length);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Reads the data file at the original file path into memory and
 /// uses the reload from memory function to reload the data set
 /// from that memory location.
 /// </summary>
 public void ReloadFromMemory()
 {
     byte[] bytes = File.ReadAllBytes(_fileName);
     _provider.reloadFromMemory(bytes.ToString(), bytes.GetLength(0));
 }