Ignore:
Timestamp:
Sep 11, 2019, 3:33:13 PM (13 months ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCmBin: Add MsgPackWriters? classes to ROCmBinaries. Add ROCmMsgPackWrite (still empty) testsuite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/amdbin/ROCmBinaries.h

    r4950 r4953  
    612612};
    613613
     614class MsgPackMapWriter;
     615
     616class MsgPackArrayWriter
     617{
     618private:
     619    std::vector<cxbyte>& output;
     620    size_t elemsNum;
     621    size_t count;
     622public:
     623    MsgPackArrayWriter(size_t elemsNum, std::vector<cxbyte>& output);
     624   
     625    void putBool(bool b);
     626    void putString(const char* str);
     627    void putUInt(uint64_t v);
     628    MsgPackArrayWriter putArray(size_t aelemsNum);
     629    MsgPackMapWriter putMap(size_t melemsNum);
     630};
     631
     632class MsgPackMapWriter
     633{
     634private:
     635    std::vector<cxbyte>& output;
     636    size_t elemsNum;
     637    size_t count;
     638    bool inKey;
     639public:
     640    MsgPackMapWriter(size_t elemsNum, std::vector<cxbyte>& output);
     641    void putKeyString(const char* str);
     642    void putValueBool(bool b);
     643    void putValueString(const char* str);
     644    void putValueUInt(uint64_t v);
     645    MsgPackArrayWriter putValueArray(size_t aelemsNum);
     646    MsgPackMapWriter putValueMap(size_t melemsNum);
     647    std::vector<cxbyte>& putValueElement();
     648};
     649
    614650};
    615651
Note: See TracChangeset for help on using the changeset viewer.