* @param[in] nTypeIn Serialization Type * @param[in] nVersionIn Serialization Version (including any flags) * @param[in] vchDataIn Referenced byte vector to overwrite/append * @param[in] nPosIn Starting position. Vector index where writes should start. The vector will initially * grow as necessary to max(nPosIn, vec.size()). So to append, use vec.size(). */
| 86 | * grow as necessary to max(nPosIn, vec.size()). So to append, use vec.size(). |
| 87 | */ |
| 88 | CVectorWriter(int nTypeIn, int nVersionIn, std::vector<unsigned char>& vchDataIn, size_t nPosIn) : nType(nTypeIn), nVersion(nVersionIn), vchData(vchDataIn), nPos(nPosIn) |
| 89 | { |
| 90 | if(nPos > vchData.size()) |
| 91 | vchData.resize(nPos); |
| 92 | } |
| 93 | /* |
| 94 | * (other params same as above) |
| 95 | * @param[in] args A list of items to serialize starting at nPosIn. |
nothing calls this directly
no test coverage detected