コード例 #1
0
        public void InitializeMmap()
        {
            GameObject hakoniwa = GameObject.Find("Hakoniwa");

            bufferParams = hakoniwa.GetComponentInChildren <IoBufferParameter>();
            io_mmap      = new MmapFileReader();
            io_mmap.DoStart(this.filepath);
            this.io = io_mmap;
            return;
        }
コード例 #2
0
        public void Initialize()
        {
            GameObject hakoniwa = GameObject.Find("Hakoniwa");

            bufferParams = hakoniwa.GetComponentInChildren <IoBufferParameter>();
#if VDEV_IO_MMAP
            io = new MmapFileReader();
            io.DoStart(this.filepath, this.stime_off);
#else
            /*************************************
            * UDP SETTINGS
            *************************************/
            io      = new UdpCommServer();
            io.port = port;
            /*************************************/
            io.DoStart();
#endif
        }