ImmutableBinary
Overview
ImmutableBinary is a holder class for binary data. Unlike Binary it's read only.
Location
- Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Mapped to:
- MemoryStream .NET, .NET Core 6.0, .NET Standard 2.0
- MemoryStream Island
- NSData Toffee, ToffeeV2
Creates a new binary with the data as input.
constructor(aArray: not nullable array of Byte)ImmutableBinary(Byte[]! aArray)init(_ aArray: Byte...)ImmutableBinary(Byte[] aArray)Sub New(aArray As Byte())Parameters:
- aArray:
constructor(aArray: not nullable array of Byte; aCount: Int32)ImmutableBinary(Byte[]! aArray, Int32 aCount)init( aArray: Byte..., aCount: Int32)ImmutableBinary(Byte[] aArray, Integer aCount)Sub New(aArray As Byte(), aCount As Int32)Parameters:
- aArray:
- aCount:
constructor(aArray: not nullable array of Byte; aOffset: Int32; aCount: Int32)ImmutableBinary(Byte[]! aArray, Int32 aOffset, Int32 aCount)init( aArray: Byte..., aOffset: Int32, _ aCount: Int32)ImmutableBinary(Byte[] aArray, Integer aOffset, Integer aCount)Sub New(aArray As Byte(), aOffset As Int32, aCount As Int32)Parameters:
- aArray:
- aOffset:
- aCount:
constructor(aData: not nullable NSData)ImmutableBinary(NSData! aData)init(_ aData: NSData)Sub New(aData As NSData)Parameters:
- aData:
method IndexOf(aBytes: array of Byte): Int32Int32 IndexOf(Byte[] aBytes)func IndexOf(_ aBytes: Byte...) -> Int32Integer IndexOf(Byte[] aBytes)Function IndexOf(aBytes As Byte()) As Int32Parameters:
- aBytes:
Returns the length of this binary.
property Length: Int32 read;Int32 Length { get; }var Length: Int32 { get{} }Integer Length { __get; }ReadOnly Property Length() As Int32Creates a copy of this and make it mutable.
method MutableVersion: not nullable BinaryBinary! MutableVersion()func MutableVersion() -> BinaryBinary MutableVersion()Function MutableVersion() As BinaryRead the content of this binary into an array.
method Read(aStartIndex: Int32; aCount: Int32): array of ByteByte[] Read(Int32 aStartIndex, Int32 aCount)func Read( aStartIndex: Int32, aCount: Int32) -> Byte...Byte[] Read(Integer aStartIndex, Integer aCount)Function Read(aStartIndex As Int32, aCount As Int32) As Byte()Parameters:
- aStartIndex:
- aCount:
Read the content of this binary into an array.
method Read(Count: Int32): array of ByteByte[] Read(Int32 Count)func Read(_ Count: Int32) -> Byte...Byte[] Read(Integer Count)Function Read(Count As Int32) As Byte()Parameters:
- Count:
Read the content of this binary into an array.
method Read(Range: Range): array of ByteByte[] Read(Range Range)func Read(_ Range: Range) -> Byte...Byte[] Read(Range Range)Function Read(Range As Range) As Byte()Parameters:
- Range:
Read the content of this binary into an array.
method Subdata(aStartIndex: Int32; aCount: Int32): BinaryBinary Subdata(Int32 aStartIndex, Int32 aCount)func Subdata( aStartIndex: Int32, aCount: Int32) -> BinaryBinary Subdata(Integer aStartIndex, Integer aCount)Function Subdata(aStartIndex As Int32, aCount As Int32) As BinaryParameters:
- aStartIndex:
- aCount:
Read the content of this binary into an array.
method Subdata(Range: Range): BinaryBinary Subdata(Range Range)func Subdata(_ Range: Range) -> BinaryBinary Subdata(Range Range)Function Subdata(Range As Range) As BinaryParameters:
- Range:
Get the content of this binary as array.
method ToArray: not nullable array of ByteByte[]! ToArray()func ToArray() -> Byte...Byte[] ToArray()Function ToArray() As Byte()method ToNSMutableData: NSMutableDataNSMutableData ToNSMutableData()func ToNSMutableData() -> NSMutableDataFunction ToNSMutableData() As NSMutableDataGet the underlying storage.
method ToPlatformBinary: ImmutablePlatformBinaryImmutablePlatformBinary ToPlatformBinary()func ToPlatformBinary() -> ImmutablePlatformBinaryImmutablePlatformBinary ToPlatformBinary()Function ToPlatformBinary() As ImmutablePlatformBinary
Returns the length of this binary.
property Length: Int32 read;Int32 Length { get; }var Length: Int32 { get{} }Integer Length { __get; }ReadOnly Property Length() As Int32
Creates a new binary with the data as input.
constructor(aArray: not nullable array of Byte)ImmutableBinary(Byte[]! aArray)init(_ aArray: Byte...)ImmutableBinary(Byte[] aArray)Sub New(aArray As Byte())Parameters:
- aArray:
constructor(aArray: not nullable array of Byte; aCount: Int32)ImmutableBinary(Byte[]! aArray, Int32 aCount)init( aArray: Byte..., aCount: Int32)ImmutableBinary(Byte[] aArray, Integer aCount)Sub New(aArray As Byte(), aCount As Int32)Parameters:
- aArray:
- aCount:
constructor(aArray: not nullable array of Byte; aOffset: Int32; aCount: Int32)ImmutableBinary(Byte[]! aArray, Int32 aOffset, Int32 aCount)init( aArray: Byte..., aOffset: Int32, _ aCount: Int32)ImmutableBinary(Byte[] aArray, Integer aOffset, Integer aCount)Sub New(aArray As Byte(), aOffset As Int32, aCount As Int32)Parameters:
- aArray:
- aOffset:
- aCount:
constructor(aData: not nullable NSData)ImmutableBinary(NSData! aData)init(_ aData: NSData)Sub New(aData As NSData)Parameters:
- aData:
method IndexOf(aBytes: array of Byte): Int32Int32 IndexOf(Byte[] aBytes)func IndexOf(_ aBytes: Byte...) -> Int32Integer IndexOf(Byte[] aBytes)Function IndexOf(aBytes As Byte()) As Int32Parameters:
- aBytes:
Creates a copy of this and make it mutable.
method MutableVersion: not nullable BinaryBinary! MutableVersion()func MutableVersion() -> BinaryBinary MutableVersion()Function MutableVersion() As BinaryRead the content of this binary into an array.
method Read(aStartIndex: Int32; aCount: Int32): array of ByteByte[] Read(Int32 aStartIndex, Int32 aCount)func Read( aStartIndex: Int32, aCount: Int32) -> Byte...Byte[] Read(Integer aStartIndex, Integer aCount)Function Read(aStartIndex As Int32, aCount As Int32) As Byte()Parameters:
- aStartIndex:
- aCount:
Read the content of this binary into an array.
method Read(Count: Int32): array of ByteByte[] Read(Int32 Count)func Read(_ Count: Int32) -> Byte...Byte[] Read(Integer Count)Function Read(Count As Int32) As Byte()Parameters:
- Count:
Read the content of this binary into an array.
method Read(Range: Range): array of ByteByte[] Read(Range Range)func Read(_ Range: Range) -> Byte...Byte[] Read(Range Range)Function Read(Range As Range) As Byte()Parameters:
- Range:
Read the content of this binary into an array.
method Subdata(aStartIndex: Int32; aCount: Int32): BinaryBinary Subdata(Int32 aStartIndex, Int32 aCount)func Subdata( aStartIndex: Int32, aCount: Int32) -> BinaryBinary Subdata(Integer aStartIndex, Integer aCount)Function Subdata(aStartIndex As Int32, aCount As Int32) As BinaryParameters:
- aStartIndex:
- aCount:
Read the content of this binary into an array.
method Subdata(Range: Range): BinaryBinary Subdata(Range Range)func Subdata(_ Range: Range) -> BinaryBinary Subdata(Range Range)Function Subdata(Range As Range) As BinaryParameters:
- Range:
Get the content of this binary as array.
method ToArray: not nullable array of ByteByte[]! ToArray()func ToArray() -> Byte...Byte[] ToArray()Function ToArray() As Byte()method ToNSMutableData: NSMutableDataNSMutableData ToNSMutableData()func ToNSMutableData() -> NSMutableDataFunction ToNSMutableData() As NSMutableDataGet the underlying storage.
method ToPlatformBinary: ImmutablePlatformBinaryImmutablePlatformBinary ToPlatformBinary()func ToPlatformBinary() -> ImmutablePlatformBinaryImmutablePlatformBinary ToPlatformBinary()Function ToPlatformBinary() As ImmutablePlatformBinary