libcm is a C development framework with an emphasis on audio signal processing applications.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

cmStrStream.h 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef cmStrStream_h
  2. #define cmStrStream_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. enum
  7. {
  8. kOkSsRC = cmOkRC,
  9. kLHeapMemFailSsRC
  10. };
  11. typedef cmHandle_t cmStrStreamH_t;
  12. typedef cmRC_t cmSsRC_t;
  13. extern cmStrStreamH_t cmStrStreamNullHandle;
  14. cmSsRC_t cmOStrStreamCreate( cmCtx_t* ctx, cmStrStreamH_t* hp, unsigned dfltBlkByteCnt );
  15. cmSsRC_t cmOStrStreamDestroy(cmStrStreamH_t* hp );
  16. bool cmOStrStreamIsValid( cmStrStreamH_t h );
  17. cmSsRC_t cmOStrStreamWrite( cmStrStreamH_t h, const void* dp, unsigned byteCnt );
  18. cmSsRC_t cmOStrStreamWriteStr( cmStrStreamH_t h, const cmChar_t* str );
  19. cmSsRC_t cmOStrStreamWriteStrN( cmStrStreamH_t h, const cmChar_t* str, unsigned n );
  20. cmSsRC_t cmOStrStreamVPrintf( cmStrStreamH_t h, const cmChar_t* fmt, va_list vl );
  21. cmSsRC_t cmOStrStreamPrintf( cmStrStreamH_t h, const cmChar_t* fmt, ... );
  22. unsigned cmOStrStreamByteCount( cmStrStreamH_t h );
  23. void* cmOStrStreamAllocBuf( cmStrStreamH_t h );
  24. cmChar_t* cmOStrStreamAllocText( cmStrStreamH_t h );
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif