[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Suggestion/Request for Update of AsnBuf
Dear ESNACC development team:
I’ve got a suggestion regarding class AsnBuf. This class has a
constructor, allowing a buffer to be assigned:
AsnBuf(const char *seg, size_t segLen)
The assigned buffer is copied, which is not suitable for large messages.
In my opinion it would be very useful if you add another constructor, which will use the provided buffer, instead of copying it. For example:
AsnBuf::AsnBuf(char *preFilled, size_t segLen)
{
m_card = m_deck.insert(m_deck.begin(), new Card(new AsnRvsBuf(preFilled, segLen)));
}
Best regards,
Vladislav Evgeniev