This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Diagnostics; | |
| using System.IO.MemoryMappedFiles; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using static System.Console; | |
| namespace WindowerIpc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public unsafe class Ipc { | |
| public Ipc(String addon) { | |
| AddonBytes = Encoding.UTF8.GetBytes(addon); | |
| if (AddonBytes.Length >= AddonSize) { | |
| throw new InvalidDataException("Maximum length for addon name is 31 bytes in UTF-8."); | |
| } | |
| } | |
| public void Send(String message, String character) => | |
| Send(message, GetPid(character)); |
OlderNewer