Closed hmpmarketing closed 1 year ago
Hi,
I need to access a MemoryMappedFile (Windows) with nodeJS code, the C equivalent is below:
using System; using System.IO.MemoryMappedFiles; class HelloWorld { static void Main() { double Ask = -1; while (true){ MemoryMappedFile RateFile = MemoryMappedFile.OpenExisting("Global\\KEY"); if (RateFile != null) { var accessor = RateFile.CreateViewAccessor(); Ask = accessor.ReadDouble(sizeof(double)); accessor.Dispose(); Console.WriteLine("ASK: " + Ask); } RateFile.Dispose(); } //return true; } }
How could I write this in nodeJS?
Thank you so much
Not relevant to edge-js
edge-js
Hi,
I need to access a MemoryMappedFile (Windows) with nodeJS code, the C equivalent is below:
How could I write this in nodeJS?
Thank you so much