libcm is a C development framework with an emphasis on audio signal processing applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmStrStream.h 1001B

123456789101112131415161718192021222324252627282930313233343536373839
  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_t;
  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 cmOStrStreamVPrintf( cmStrStreamH_t h, const cmChar_t* fmt, va_list vl );
  20. cmSsRC_t cmOStrStreamPrintf( cmStrStreamH_t h, const cmChar_t* fmt, ... );
  21. unsigned cmOStrStreamByteCount( cmStrStreamH_t h );
  22. void* cmOStrStreamAllocBuf( cmStrStreamH_t h );
  23. cmChar_t* cmOStrStreamAllocText( cmStrStreamH_t h );
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif