| Binary Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: Tangosol.Util
 Syntax
Syntax[SerializableAttribute] public sealed class Binary
The Binary type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | Binary | 
            Default constructor for a Binary object.
             | 
|  | Binary(Byte) | 
            Construct a Binary object from a byte array.
             | 
|  | Binary(Stream, Int32) | 
            Construct a Binary from a Stream.
             | 
|  | Binary(Byte, Int32, Int32) | 
            Construct a Binary on a portion of a byte array.
             | 
 Properties
Properties Methods
Methods| Name | Description | |
|---|---|---|
|  | ByteAt | 
            Returns a byte at the specified position.
             | 
|  | CalculateNaturalPartition | 
            Calculate the partition ID to which the specified Binary should be
            naturally assigned. This calculation should not be applied to Binary
            objects decorated with artificially assigned partitions.
             | 
|   | Clone | 
            Create a clone of the specified binary region.
             | 
|  | Equals(Object) | 
            Compare this object with another object to determine equality.
            (Overrides ObjectEquals(Object).) | 
|   | Equals(Byte, Int32, Byte, Int32, Int32) | 
            Compare two binary regions, testing for equality.
             | 
|  | GetBinary | 
            Get a Binary representing a subset of this Binary.
             | 
|  | GetHashCode | 
            Determine a hash value for the Binary object.
            (Overrides ObjectGetHashCode.) | 
|  | GetReader | 
            Return a DataReader to read this Binary's contents from.
             | 
|  | GetStream | 
            Get a Stream to read the Binary object's contents from.
             | 
|  | GetStream(Int32, Int32) | 
            Get a Stream to read the Binary object's contents from.
             | 
|  | GetType | Gets the Type of the current instance.(Inherited from Object.) | 
|  | ToByteArray | 
            Get the contents of the Binary as a byte array.
             | 
|  | ToByteArray(Int32, Int32) | 
            Get a portion of the contents of the Binary as a byte array.
             | 
|  | ToString | 
            Return a human-readable description for this Binary.
            (Overrides ObjectToString.) | 
|   | ToString(Byte) | 
            For debugging purposes, convert the passed byte array into a string
            that contains the information regarding whether the reference is null,
            and if it is not null, what the length of the byte array is.
             | 
|  | WriteTo(BinaryWriter) | 
            Write the contents of the Binary object to a Stream.
             | 
|  | WriteTo(Stream) | 
            Write the contents of the Binary object to a Stream.
             | 
|  | WriteTo(BinaryWriter, Int32, Int32) | 
            Write the contents of the Binary object to a BinaryWriter.
             | 
|  | WriteTo(Stream, Int32, Int32) | 
            Write the contents of the Binary object to a Stream.
             | 
 Fields
Fields| Name | Description | |
|---|---|---|
|   | NO_BINARY | 
            An empty Binary object.
             | 
|   | NO_BYTES | 
            An empty byte array (by definition immutable).
             | 
 See Also
See Also