1 2 3 4 5 6 7 8 9 10
public unsafe struct QueryKeyNameCommand : IInputDeviceCommandInfo { public string ReadKeyName() { fixed(QueryKeyNameCommand* thisPtr = &this) { return StringHelpers.ReadStringFromBuffer(new IntPtr(thisPtr->nameBuffer), kMaxNameLength); } } }