Codecore Logo
Quick Search
»
Advanced Search »

Byte Array Data Type

RSS
Represents an array of bytes.


Constructors

ByteArray( Number )

Initializes a new Byte Array instance of the specified length.

Syntax:

ByteArray( Number length )

Example:


b = new ByteArray(100);

Instance Properties

Length

Gets or sets the length of the byte array.

Type: Number

Example:


len = b.Length;

Hash

Gets the MD5 hash of the byte array.

Type: String

Example:


md5 = b.Hash;

Instance Methods

GetValue ( Number )

Gets the value at the specified index.

Syntax:

Number GetValue( Number index )

Parameters:

index: The index.

Return Value

The value at the specified index.

Example:


value = b.GetValue( 1 );

SetValue ( Number, Number )

Sets the value at the specified index.

Syntax:

void SetValue( Number value, Number index )

Parameters:

value: The value.
index: The index.

Return Value

none

Example:


value = b.GetValue( 1 );
Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.