Brecham.Obex — An OBEX library for the .NET Framework

ObexOpcodeMasks Class

Mask values to use with the enum ObexOpcode.

For a list of all members of this type, see ObexOpcodeMasks Members.

System.Object
   Brecham.Obex.Pdus.ObexOpcodeMasks

[Visual Basic]
MustInherit NotInheritable Public Class ObexOpcodeMasks
[C#]
public abstract sealed class ObexOpcodeMasks

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Mask values to use with the enum ObexOpcode. The Opcode value encodes in the top bit whether it is 'Final' or not, so one can use code like the following.

[C#]
ObexOpcode opcode = ...;
bool isFinal = (reqPdu.Opcode & ObexOpcodeMasks.FinalBit) != 0;

Requirements

Namespace: Brecham.Obex.Pdus

Assembly: Brecham.Obex (in Brecham.Obex.dll)

See Also

ObexOpcodeMasks Members | Brecham.Obex.Pdus Namespace