XBee C# library API reference

Show / Hide Table of Contents

Class SpecialByteExtensions

Inheritance
System.Object
SpecialByteExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: XBeeLibrary.Core.Models
Assembly: XBeeLibrary.Core.dll
Syntax
public static class SpecialByteExtensions

Methods

EscapeByte(SpecialByte)

Escapes the byte by performing a XOR operation with

0x20
value.

Declaration
public static byte EscapeByte(this SpecialByte source)
Parameters
Type Name Description
SpecialByte source
Returns
Type Description
System.Byte

Escaped byte value.

Get(SpecialByte, Byte)

Gets the SpecialByte entry associated with the given value.

Declaration
public static SpecialByte Get(this SpecialByte dumb, byte value)
Parameters
Type Name Description
SpecialByte dumb
System.Byte value

Value of the SpecialByte to retrieve.

Returns
Type Description
SpecialByte

SpecialByte associated to the given value, 0 if it does not exist in the list.

GetValue(SpecialByte)

Gest the special byte value.

Declaration
public static byte GetValue(this SpecialByte source)
Parameters
Type Name Description
SpecialByte source
Returns
Type Description
System.Byte

The special byte value.

IsSpecialByte(SpecialByte, Byte)

Checks whether the given byte is special or not.

Declaration
public static bool IsSpecialByte(this SpecialByte source, byte byteToCheck)
Parameters
Type Name Description
SpecialByte source
System.Byte byteToCheck

Byte to check.

Returns
Type Description
System.Boolean

true if given byte is special, false otherwise.

Product page More documentation Official site About Digi Contact us Support
©2019 Digi International Inc. All rights reserved.
Digi International Inc.