This code provides two global functions, WriteVariantToStream and ReadVariantFromStream,
that enable you to read and write a variant to a stream. In addition, there are two other
global functions, ReadVariantFromBlob and WriteVariantToBlob, for reading and writing
a variant to a BLOB.
Here are some of the main advantages of these functions:
Uses any given IStream to stream the Variant into and out of.
Data is streamed in efficient binary form.
Stream is versioned for backwards compatibility.
Supports arbitrary size and arbitrary dimension safe-arrays.
Object streaming is supported if the object in variant supports
All code is in one header file (VariantStream.h) and only two routines are
exposed: WriteVariantToStream and ReadVariantFromStream.
Comes with supporting test code that tests the header file -- in case code
Does not use C++ exception handling. Test project has EH flag
Doesn't use the CRT.
Does not use any Direct-To-COM (VC++'s comdef.h, such as _variant_t, _bstr_t,
Discover how to quickly remediate aggressive security threats. Read this report from Forrester Research and get the facts about new automated compliance processes and how they will reduce your organization's vulnerability and risk. Learn to:
Adopt a set of cyber "Rules of Engagement"
Define the appropriate response through the "Response Index"
Create actionable response metrics
Ensure multiple levels of audit and reinforcement
Plus, find out how to better align security and operations teams and put the …
By providing developers with the right tools to detect, understand, and fix problems early, your business can simplify software development, shorten development lifecycles, and improve the quality of software code. The end result is increased innovation, secure applications, and a faster time to market — all at a lower cost.