/// <summary> /// Writes a <see cref="TextLayoutCommandType.Text"/> command to the current position in the stream. /// </summary> /// <param name="command">The command to write to the stream.</param> public void WriteText(TextLayoutTextCommand command) { stream.Reserve(sizeof(TextLayoutTextCommand)); *(TextLayoutTextCommand *)stream.Data = command; *(TextLayoutCommandType *)stream.Data = TextLayoutCommandType.Text; stream.FinalizeObject(sizeof(TextLayoutTextCommand)); }
/// <summary> /// Writes a <see cref="TextLayoutCommandType.Text"/> command to the current position in the stream. /// </summary> /// <param name="command">The command to write to the stream.</param> public void WriteText(TextLayoutTextCommand command) { stream.Reserve(sizeof(TextLayoutTextCommand)); *(TextLayoutTextCommand*)stream.Data = command; *(TextLayoutCommandType*)stream.Data = TextLayoutCommandType.Text; stream.FinalizeObject(sizeof(TextLayoutTextCommand)); }