public static void WriteNullTerminatedAnsiString(byte[] buffer, int offset, string value) { ByteWriter.WriteAnsiString(buffer, offset, value); ByteWriter.WriteByte(buffer, offset + value.Length, 0x00); }
public static void WriteNullTerminatedUnicodeString(byte[] buffer, int offset, string value) { ByteWriter.WriteUnicodeString(buffer, offset, value); ByteWriter.WriteBytes(buffer, offset + value.Length * 2, new byte[] { 0x00, 0x00 }); }