Leaked source code of windows server 2003
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.

54 lines
1.1 KiB

  1. // Blob.h -- Blob type and primitives
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 1999. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(SLBCSP_BLOB_H)
  8. #define SLBCSP_BLOB_H
  9. #if defined(_UNICODE)
  10. #if !defined(UNICODE)
  11. #define UNICODE
  12. #endif //!UNICODE
  13. #endif //_UNICODE
  14. #if defined(UNICODE)
  15. #if !defined(_UNICODE)
  16. #define _UNICODE
  17. #endif //!_UNICODE
  18. #endif //UNICODE
  19. #include <string>
  20. #include <windows.h>
  21. // Blob -- a Binary Large Object
  22. typedef std::basic_string<BYTE> Blob;
  23. // Helper routines
  24. Blob const
  25. AsBlob(std::string const &rrhs);
  26. Blob
  27. AsBlob(std::string &rrhs);
  28. std::string const
  29. AsString(Blob const &rlhs);
  30. std::string
  31. AsString(Blob &rlhs);
  32. const char*
  33. AsCCharP(LPCTSTR pczs);
  34. Blob::size_type
  35. LengthFromBits(size_t cBitLength);
  36. size_t
  37. LengthInBits(Blob::size_type cSize);
  38. #endif // SLBCSP_BLOB_H