• R/O
  • SSH
  • HTTPS

eirrepo: Commit


Commit MetaInfo

Revision107 (tree)
Time2018-08-11 14:36:33
Authorquiret

Log Message

- added a helpful utility for constant in-memory streams

Change Summary

Incremental Difference

--- common/sdk/MemoryUtils.stream.h (revision 106)
+++ common/sdk/MemoryUtils.stream.h (revision 107)
@@ -373,6 +373,16 @@
373373 MEMSTREAM_PIPE_HELPER( Double, std::double_t );
374374 };
375375
376+// Useful for constant read-only memory-streams.
377+template <typename seekType>
378+struct nullBufAllocMan
379+{
380+ inline void EstablishBufferView( const void*& memPtr, seekType& bufSizeOut, seekType reqSize )
381+ {
382+ return;
383+ }
384+};
385+
376386 namespace BasicMemStream
377387 {
378388 template <typename numberType>
Show on old repository browser