public void InitializeMmap() { GameObject hakoniwa = GameObject.Find("Hakoniwa"); bufferParams = hakoniwa.GetComponentInChildren <IoBufferParameter>(); io_mmap = new MmapFileWriter(); io_mmap.DoStart(this.filepath); this.io = io_mmap; Debug.Log("params=" + bufferParams); return; }
public void Start() { GameObject hakoniwa = GameObject.Find("Hakoniwa"); bufferParams = hakoniwa.GetComponentInChildren <IoBufferParameter>(); #if VDEV_IO_MMAP io = new MmapFileWriter(); io.DoStart(this.filepath, this.stime_off); #else /************************************* * UDP SETTINGS *************************************/ io = new UdpCommClient(); io.host = host; io.port = port; /*************************************/ io.DoStart(); #endif Debug.Log("params=" + bufferParams); }