ISupportBinaryImageExtensionsBinaryImage Method
Namespace: Gemstone.IO.ParsingAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.147 -- Release Build+759c9d29b79c81f10905de8f58b653be932045f0
public static byte[] BinaryImage(
this ISupportBinaryImage imageSource,
bool clearArray = false
)
<ExtensionAttribute>
Public Shared Function BinaryImage (
imageSource As ISupportBinaryImage,
Optional clearArray As Boolean = false
) As Byte()
public:
[ExtensionAttribute]
static array<unsigned char>^ BinaryImage(
ISupportBinaryImage^ imageSource,
bool clearArray = false
)
Gemstone.IO.Parsing.ISupportBinaryImageExtensions.BinaryImage = function(imageSource, clearArray);
- imageSource ISupportBinaryImage
- ISupportBinaryImage source.
- clearArray Boolean (Optional)
-
Clears any rented buffers of their contents so that a subsequent consumer will not
see the previous consumer's content. If false, default, the array's contents
are left unchanged.
ByteA binary image of an object that implements
ISupportBinaryImage.In Visual Basic and C#, you can call this method as an instance method on any object of type
ISupportBinaryImage. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a convenience method. It is often optimal to use
GenerateBinaryImage(Byte, Int32)
directly using a common buffer instead of always allocating new buffers.
ArgumentNullException | imageSource cannot be null. |