Class Message
This class encapsulates the concept of a message, which is an object that can be represented as a series of bytes for abstract transport
Inheritance
System.Object
Message
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: Couchbase.Lite.P2P
Assembly: Couchbase.Lite.dll
Syntax
public abstract class Message
Remarks
NOTE: This is an enterprise edition feature
Methods
| Improve this Doc View SourceFromBytes(Byte[])
Creates a message based on the given byte array
Declaration
public static Message FromBytes(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The data to include in the message |
Returns
Type | Description |
---|---|
Message | The instantiated Message object |
Remarks
NOTE: This is an enterprise edition feature
ToByteArray()
Creates a byte array from the message
Declaration
public abstract byte[] ToByteArray()
Returns
Type | Description |
---|---|
System.Byte[] | The byte data of the message |
Remarks
NOTE: This is an enterprise edition feature