C# Class OpenMetaverse.Packets.Packet

Exibir arquivo Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Methods

Method Description
BuildPacket ( string capsEventName, OSDMap body ) : Packet

Attempts to convert an LLSD structure to a known Packet type

FromLLSD ( OSD osd ) : Packet
FromXmlString ( string xml ) : Packet
GetLLSD ( Packet packet ) : OSD
ToBinary ( Packet packet ) : byte[]
ToXmlString ( Packet packet ) : string

Private Methods

Method Description
BuildLLSDBlock ( object block ) : OSD
ParseLLSDBlock ( OSDMap blockData, Type blockType ) : object

Method Details

BuildPacket() public static method

Attempts to convert an LLSD structure to a known Packet type
public static BuildPacket ( string capsEventName, OSDMap body ) : Packet
capsEventName string Event name, this must match an actual /// packet name for a Packet to be successfully built
body OSDMap LLSD to convert to a Packet
return Packet

FromLLSD() public static method

public static FromLLSD ( OSD osd ) : Packet
osd OSD
return Packet

FromXmlString() public static method

public static FromXmlString ( string xml ) : Packet
xml string
return Packet

GetLLSD() public static method

public static GetLLSD ( Packet packet ) : OSD
packet Packet
return OSD

ToBinary() public static method

public static ToBinary ( Packet packet ) : byte[]
packet Packet
return byte[]

ToXmlString() public static method

public static ToXmlString ( Packet packet ) : string
packet Packet
return string