You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR: Reduce the boiler-plate when loading integers of a statically known bitlength from a buffer:
// currentlyauto a = load_be<uint32_t>(slicer.take<4>());
auto b = load_be<SomeStrongIntegerType>(slicer.take<sizeof(SomeStrongIntegerType)>());
// thenauto a = load_be<uint32_t>(slicer);
auto b = load_be<SomeStrongIntegerType>(slicer);
Note that the BufferSlicer is currently part of stl_util.h which we may or may not want to include in loadstor.h. Perhaps it makes sense to move the BufferSlicer, BufferStuffer and concat() into their own dedicated header.
The text was updated successfully, but these errors were encountered:
Additional context here: #3716 (comment)
TL;DR: Reduce the boiler-plate when loading integers of a statically known bitlength from a buffer:
Note that the
BufferSlicer
is currently part ofstl_util.h
which we may or may not want to include inloadstor.h
. Perhaps it makes sense to move theBufferSlicer
,BufferStuffer
andconcat()
into their own dedicated header.The text was updated successfully, but these errors were encountered: