Skip to content
Snippets Groups Projects
  1. Jul 24, 2018
  2. Jul 20, 2018
    • Lioncash's avatar
      ipc_helpers: Add PushEnum() member function to ResponseBuilder · 0a0b3c4b
      Lioncash authored
      Allows pushing strongly-typed enum members without the need to always
      cast them at the call sites.
      
      Note that we *only* allow strongly-typed enums in this case. The reason
      for this is that strongly typed enums have a guaranteed defined size, so
      the size of the data being pushed is always deterministic. With regular
      enums this can be a little more error-prone, so we disallow them.
      
      This function simply uses the underlying type of the enum to determine
      the size of the data. For example, if an enum is defined as:
      
      enum class SomeEnum : u16 {
        SomeEntry
      };
      
      if PushEnum(SomeEnum::SomeEntry); is called, then it will push a
      u16-size amount of data.
      0a0b3c4b
  3. May 02, 2018
  4. Feb 20, 2018
  5. Jan 25, 2018
  6. Jan 22, 2018
  7. Jan 21, 2018
  8. Jan 18, 2018
  9. Jan 16, 2018
  10. Jan 11, 2018
  11. Jan 07, 2018
  12. Dec 29, 2017
  13. Oct 17, 2017
  14. Oct 15, 2017
  15. Sep 30, 2017
  16. Jun 11, 2017
  17. May 30, 2017
  18. Mar 18, 2017
  19. Feb 04, 2017
  20. Dec 26, 2016
Loading