iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIByteValues

@interface SCIByteValues : SCIDisposableBase <ISCIValues>

Defines a byte values collection.

  • Maximum capacity of underlying array.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger capacity;

    Swift

    var capacity: Int { get }
  • Creates a new SCIByteValues instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCapacity:(NSInteger)capacity;

    Swift

    init(capacity: Int)

    Parameters

    capacity

    The initial capacity.

  • Creates a new SCIByteValues instance and initializes it with specified array.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithItems:(nonnull char *)items
                                    count:(NSInteger)count;

    Swift

    convenience init(__items items: UnsafeMutablePointer<Int8>, count: Int)

    Parameters

    items

    The array with items.

    count

    The count of passed in items.

  • Gets the internal items array.

    Declaration

    Objective-C

    @property (readonly, getter=getItemsArray, nonatomic) char *_Nonnull itemsArray;

    Swift

    var __itemsArray: UnsafeMutablePointer<Int8> { get }

    Return Value

    The items array.

  • Adds new value.

    Declaration

    Objective-C

    - (void)add:(char)value;

    Swift

    func add(_ value: Int8)

    Parameters

    value

    The value to add.

  • Adds new value at specified location.

    Declaration

    Objective-C

    - (void)insert:(char)value at:(NSInteger)index;

    Swift

    func insert(_ value: Int8, at index: Int)

    Parameters

    index

    The location to add value at.

    value

    The value to add.

  • Adds multiple values from array.

    Declaration

    Objective-C

    - (void)addValues:(nonnull char *)values count:(NSInteger)count;

    Swift

    func __add(_ values: UnsafeMutablePointer<Int8>, count: Int)

    Parameters

    values

    The values to add.

    count

    The amount of values to add.

  • Adds multiple values from array region.

    Declaration

    Objective-C

    - (void)addValues:(nonnull char *)values
           startIndex:(NSInteger)startIndex
                count:(NSInteger)count;

    Swift

    func __add(_ values: UnsafeMutablePointer<Int8>, start startIndex: Int, count: Int)

    Parameters

    values

    The values array to add.

    startIndex

    The index of first value to add.

    count

    The amount of values to add.

  • Sets the value at specified location.

    Declaration

    Objective-C

    - (void)set:(char)value at:(NSInteger)index;

    Swift

    func set(_ value: Int8, at index: Int)

    Parameters

    value

    The value to set.

    index

    The index to set value at.

  • Gets the value at specified location.

    Declaration

    Objective-C

    - (char)getValueAt:(NSInteger)index;

    Swift

    func getValueAt(_ index: Int) -> Int8

    Parameters

    index

    The index of value to get.

    Return Value

    The value.

  • Removes value at specified location.

    Declaration

    Objective-C

    - (void)removeAt:(NSInteger)index;

    Swift

    func remove(at index: Int)

    Parameters

    index

    The index to remove value at.