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
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
  • Mapped to:
    • MemoryStream  .NET, .NET Core 6.0, .NET Standard 2.0
    • MemoryStream  Island
    • NSData  Toffee, ToffeeV2


 

constructor $New() Toffee

 

init($New )

Parameters:

  • :

constructor (not nullable NSData) Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator

 

constructor(aData: not nullable NSData)

 

ImmutableBinary(NSData! aData)

 

init(_ aData: NSData)

 

Sub New(aData As NSData)

Parameters:

  • aData:

constructor (not nullable array of Byte)

Creates a new binary with the data as input.

 

constructor(anArray: not nullable array of Byte)

 

ImmutableBinary(Byte[]! anArray)

 

init(_ anArray: Byte...)

 

ImmutableBinary(Byte[] anArray)

 

Sub New(anArray As Byte())

Parameters:

  • anArray:

IndexOf (array of Byte): Integer Cooper, Island, Toffee, ToffeeV2

 

method IndexOf(aBytes: array of Byte): Int32

 

Int32 IndexOf(Byte[] aBytes)

 

func IndexOf(_ aBytes: Byte...) -> Int32

 

Integer IndexOf(Byte[] aBytes)

 

Function IndexOf(aBytes As Byte()) As Int32

Parameters:

  • aBytes:

IndexOf (array of Byte): Int32 .NET, .NET Core 6.0, .NET Standard 2.0

 

method IndexOf(aBytes: array of Byte): Int32

 

Int32 IndexOf(Byte[] aBytes)

 

func IndexOf(_ aBytes: Byte...) -> Int32

 

Function IndexOf(aBytes As Byte()) As Int32

Parameters:

  • aBytes:

Length

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

MutableVersion Cooper, Island, Toffee, ToffeeV2

Creates a copy of this and make it mutable.

 

method MutableVersion: not nullable Binary

 

Binary! MutableVersion()

 

func MutableVersion() -> Binary

 

Binary MutableVersion()

 

Function MutableVersion() As Binary

MutableVersion .NET, .NET Core 6.0, .NET Standard 2.0

 

method MutableVersion: not nullable Binary

 

Binary! MutableVersion()

 

func MutableVersion() -> Binary

 

Function MutableVersion() As Binary

Read (Integer, Integer): array of Byte Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Read(aStartIndex: Int32; aCount: Int32): array of Byte

 

Byte[] 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 (Integer): array of Byte Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Read(Count: Int32): array of Byte

 

Byte[] Read(Int32 Count)

 

func Read(_ Count: Int32) -> Byte...

 

Byte[] Read(Integer Count)

 

Function Read(Count As Int32) As Byte()

Parameters:

  • Count:

Read (Range): array of Byte Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Read(Range: Range): array of Byte

 

Byte[] Read(Range Range)

 

func Read(_ Range: Range) -> Byte...

 

Byte[] Read(Range Range)

 

Function Read(Range As Range) As Byte()

Parameters:

  • Range:

Read (Int32, Int32): array of Byte .NET, .NET Core 6.0, .NET Standard 2.0

 

method Read(aStartIndex: Int32; aCount: Int32): array of Byte

 

Byte[] Read(Int32 aStartIndex, Int32 aCount)

 

func Read(_ aStartIndex: Int32, _ aCount: Int32) -> Byte...

 

Function Read(aStartIndex As Int32, aCount As Int32) As Byte()

Parameters:

  • aStartIndex:
  • aCount:

Read (Int32): array of Byte .NET, .NET Core 6.0, .NET Standard 2.0

 

method Read(Count: Int32): array of Byte

 

Byte[] Read(Int32 Count)

 

func Read(_ Count: Int32) -> Byte...

 

Function Read(Count As Int32) As Byte()

Parameters:

  • Count:

Read (Range): array of Byte .NET, .NET Core 6.0, .NET Standard 2.0

 

method Read(Range: Range): array of Byte

 

Byte[] Read(Range Range)

 

func Read(_ Range: Range) -> Byte...

 

Function Read(Range As Range) As Byte()

Parameters:

  • Range:

Subdata (Integer, Integer): Binary Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Subdata(aStartIndex: Int32; aCount: Int32): Binary

 

Binary Subdata(Int32 aStartIndex, Int32 aCount)

 

func Subdata(_ aStartIndex: Int32, _ aCount: Int32) -> Binary

 

Binary Subdata(Integer aStartIndex, Integer aCount)

 

Function Subdata(aStartIndex As Int32, aCount As Int32) As Binary

Parameters:

  • aStartIndex:
  • aCount:

Subdata (Range): Binary Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Subdata(Range: Range): Binary

 

Binary Subdata(Range Range)

 

func Subdata(_ Range: Range) -> Binary

 

Binary Subdata(Range Range)

 

Function Subdata(Range As Range) As Binary

Parameters:

  • Range:

Subdata (Int32, Int32): Binary .NET, .NET Core 6.0, .NET Standard 2.0

 

method Subdata(aStartIndex: Int32; aCount: Int32): Binary

 

Binary Subdata(Int32 aStartIndex, Int32 aCount)

 

func Subdata(_ aStartIndex: Int32, _ aCount: Int32) -> Binary

 

Function Subdata(aStartIndex As Int32, aCount As Int32) As Binary

Parameters:

  • aStartIndex:
  • aCount:

Subdata (Range): Binary .NET, .NET Core 6.0, .NET Standard 2.0

 

method Subdata(Range: Range): Binary

 

Binary Subdata(Range Range)

 

func Subdata(_ Range: Range) -> Binary

 

Function Subdata(Range As Range) As Binary

Parameters:

  • Range:

ToArray Cooper, Island, Toffee, ToffeeV2

Get the content of this binary as array.

 

method ToArray: not nullable array of Byte

 

Byte[]! ToArray()

 

func ToArray() -> Byte...

 

Byte[] ToArray()

 

Function ToArray() As Byte()

ToArray .NET, .NET Core 6.0, .NET Standard 2.0

 

method ToArray: not nullable array of Byte

 

Byte[]! ToArray()

 

func ToArray() -> Byte...

 

Function ToArray() As Byte()

ToNSMutableData Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator

 

method ToNSMutableData: NSMutableData

 

NSMutableData ToNSMutableData()

 

func ToNSMutableData() -> NSMutableData

 

Function ToNSMutableData() As NSMutableData

ToPlatformBinary Cooper

Get the underlying storage.

 

method ToPlatformBinary: ImmutablePlatformBinary

 

ImmutablePlatformBinary ToPlatformBinary()

 

func ToPlatformBinary() -> ImmutablePlatformBinary

 

ImmutablePlatformBinary ToPlatformBinary()

 

Function ToPlatformBinary() As ImmutablePlatformBinary

UniqueCopy .NET, .NET Core 6.0, .NET Standard 2.0

 

method UniqueCopy: not nullable ImmutableBinary

 

ImmutableBinary! UniqueCopy()

 

func UniqueCopy() -> ImmutableBinary

 

Function UniqueCopy() As ImmutableBinary

UniqueMutableCopy .NET, .NET Core 6.0, .NET Standard 2.0

 

method UniqueMutableCopy: not nullable Binary

 

Binary! UniqueMutableCopy()

 

func UniqueMutableCopy() -> Binary

 

Function UniqueMutableCopy() As Binary

 

Length

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

 

constructor $New() Toffee

 

init($New )

Parameters:

  • :

constructor (not nullable NSData) Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator

 

constructor(aData: not nullable NSData)

 

ImmutableBinary(NSData! aData)

 

init(_ aData: NSData)

 

Sub New(aData As NSData)

Parameters:

  • aData:

constructor (not nullable array of Byte)

Creates a new binary with the data as input.

 

constructor(anArray: not nullable array of Byte)

 

ImmutableBinary(Byte[]! anArray)

 

init(_ anArray: Byte...)

 

ImmutableBinary(Byte[] anArray)

 

Sub New(anArray As Byte())

Parameters:

  • anArray:

IndexOf (array of Byte): Integer Cooper, Island, Toffee, ToffeeV2

 

method IndexOf(aBytes: array of Byte): Int32

 

Int32 IndexOf(Byte[] aBytes)

 

func IndexOf(_ aBytes: Byte...) -> Int32

 

Integer IndexOf(Byte[] aBytes)

 

Function IndexOf(aBytes As Byte()) As Int32

Parameters:

  • aBytes:

MutableVersion Cooper, Island, Toffee, ToffeeV2

Creates a copy of this and make it mutable.

 

method MutableVersion: not nullable Binary

 

Binary! MutableVersion()

 

func MutableVersion() -> Binary

 

Binary MutableVersion()

 

Function MutableVersion() As Binary

Read (Integer, Integer): array of Byte Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Read(aStartIndex: Int32; aCount: Int32): array of Byte

 

Byte[] 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 (Integer): array of Byte Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Read(Count: Int32): array of Byte

 

Byte[] Read(Int32 Count)

 

func Read(_ Count: Int32) -> Byte...

 

Byte[] Read(Integer Count)

 

Function Read(Count As Int32) As Byte()

Parameters:

  • Count:

Read (Range): array of Byte Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Read(Range: Range): array of Byte

 

Byte[] Read(Range Range)

 

func Read(_ Range: Range) -> Byte...

 

Byte[] Read(Range Range)

 

Function Read(Range As Range) As Byte()

Parameters:

  • Range:

Subdata (Integer, Integer): Binary Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Subdata(aStartIndex: Int32; aCount: Int32): Binary

 

Binary Subdata(Int32 aStartIndex, Int32 aCount)

 

func Subdata(_ aStartIndex: Int32, _ aCount: Int32) -> Binary

 

Binary Subdata(Integer aStartIndex, Integer aCount)

 

Function Subdata(aStartIndex As Int32, aCount As Int32) As Binary

Parameters:

  • aStartIndex:
  • aCount:

Subdata (Range): Binary Cooper, Island, Toffee, ToffeeV2

Read the content of this binary into an array.

 

method Subdata(Range: Range): Binary

 

Binary Subdata(Range Range)

 

func Subdata(_ Range: Range) -> Binary

 

Binary Subdata(Range Range)

 

Function Subdata(Range As Range) As Binary

Parameters:

  • Range:

ToArray Cooper, Island, Toffee, ToffeeV2

Get the content of this binary as array.

 

method ToArray: not nullable array of Byte

 

Byte[]! ToArray()

 

func ToArray() -> Byte...

 

Byte[] ToArray()

 

Function ToArray() As Byte()

ToNSMutableData Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator

 

method ToNSMutableData: NSMutableData

 

NSMutableData ToNSMutableData()

 

func ToNSMutableData() -> NSMutableData

 

Function ToNSMutableData() As NSMutableData

ToPlatformBinary Cooper

Get the underlying storage.

 

method ToPlatformBinary: ImmutablePlatformBinary

 

ImmutablePlatformBinary ToPlatformBinary()

 

func ToPlatformBinary() -> ImmutablePlatformBinary

 

ImmutablePlatformBinary ToPlatformBinary()

 

Function ToPlatformBinary() As ImmutablePlatformBinary

IndexOf (array of Byte): Int32 .NET, .NET Core 6.0, .NET Standard 2.0

 

method IndexOf(aBytes: array of Byte): Int32

 

Int32 IndexOf(Byte[] aBytes)

 

func IndexOf(_ aBytes: Byte...) -> Int32

 

Function IndexOf(aBytes As Byte()) As Int32

Parameters:

  • aBytes:

MutableVersion .NET, .NET Core 6.0, .NET Standard 2.0

 

method MutableVersion: not nullable Binary

 

Binary! MutableVersion()

 

func MutableVersion() -> Binary

 

Function MutableVersion() As Binary

Read (Int32, Int32): array of Byte .NET, .NET Core 6.0, .NET Standard 2.0

 

method Read(aStartIndex: Int32; aCount: Int32): array of Byte

 

Byte[] Read(Int32 aStartIndex, Int32 aCount)

 

func Read(_ aStartIndex: Int32, _ aCount: Int32) -> Byte...

 

Function Read(aStartIndex As Int32, aCount As Int32) As Byte()

Parameters:

  • aStartIndex:
  • aCount:

Read (Int32): array of Byte .NET, .NET Core 6.0, .NET Standard 2.0

 

method Read(Count: Int32): array of Byte

 

Byte[] Read(Int32 Count)

 

func Read(_ Count: Int32) -> Byte...

 

Function Read(Count As Int32) As Byte()

Parameters:

  • Count:

Read (Range): array of Byte .NET, .NET Core 6.0, .NET Standard 2.0

 

method Read(Range: Range): array of Byte

 

Byte[] Read(Range Range)

 

func Read(_ Range: Range) -> Byte...

 

Function Read(Range As Range) As Byte()

Parameters:

  • Range:

Subdata (Int32, Int32): Binary .NET, .NET Core 6.0, .NET Standard 2.0

 

method Subdata(aStartIndex: Int32; aCount: Int32): Binary

 

Binary Subdata(Int32 aStartIndex, Int32 aCount)

 

func Subdata(_ aStartIndex: Int32, _ aCount: Int32) -> Binary

 

Function Subdata(aStartIndex As Int32, aCount As Int32) As Binary

Parameters:

  • aStartIndex:
  • aCount:

Subdata (Range): Binary .NET, .NET Core 6.0, .NET Standard 2.0

 

method Subdata(Range: Range): Binary

 

Binary Subdata(Range Range)

 

func Subdata(_ Range: Range) -> Binary

 

Function Subdata(Range As Range) As Binary

Parameters:

  • Range:

ToArray .NET, .NET Core 6.0, .NET Standard 2.0

 

method ToArray: not nullable array of Byte

 

Byte[]! ToArray()

 

func ToArray() -> Byte...

 

Function ToArray() As Byte()

UniqueCopy .NET, .NET Core 6.0, .NET Standard 2.0

 

method UniqueCopy: not nullable ImmutableBinary

 

ImmutableBinary! UniqueCopy()

 

func UniqueCopy() -> ImmutableBinary

 

Function UniqueCopy() As ImmutableBinary

UniqueMutableCopy .NET, .NET Core 6.0, .NET Standard 2.0

 

method UniqueMutableCopy: not nullable Binary

 

Binary! UniqueMutableCopy()

 

func UniqueMutableCopy() -> Binary

 

Function UniqueMutableCopy() As Binary