DataBytes Class

Represents an object that manages the Data field for any CAN or CAN FD message.

Definition

Namespace: Peak.Can.Basic
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 4.8.2
C#
public class DataBytes
Inheritance
Object    DataBytes

Constructors

DataBytes(Byte) Creates a DataBytes manager object.
DataBytes(Int32) Creates a DataBytes manager object.

Properties

Item Access as data iterator.
MaxLength The maximum length or count of bytes contained/managed in this DataBytes object.

Methods

Clone Returns a new copy of this instance with the same data values.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
SetData Replaces the content of the managed data bytes.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Operators

(Byte to DataBytes) Implicitly converts a byte array in a DataBytes object.
(DataBytes to Byte) Implicitly converts a DataBytes object in a byte array.

See Also