Class Parcel
Definition
- Namespace:
- Tizen.Applications.RPCPort
- Assembly:
- Tizen.Applications.Common.dll
The class that helps to perform marshalling and unmarshalling for RPC.
public class Parcel : IDisposable
- Inheritance
-
objectParcel
- Implements
-
System.IDisposable
Constructors
View SourceParcel()
Constructor for this class.
Declaration
public Parcel()
Exceptions
Type | Condition |
---|---|
InvalidIOException | Thrown when an internal IO error occurs. |
Parcel(Port)
Constructor with port object.
Declaration
public Parcel(Port port)
Parameters
Type | Name | Description |
---|---|---|
Port | port | Port object. |
Exceptions
Type | Condition |
---|---|
InvalidIOException | Thrown when an internal IO error occurs. |
Methods
View SourceDispose()
Release all the resources used by the class Parcel.
Declaration
public void Dispose()
~Parcel()
Finalizer of the class Parcel.
Declaration
protected ~Parcel()
Read(int)
Reads bytes from parcel object.
Declaration
public byte[] Read(int size)
Parameters
Type | Name | Description |
---|---|---|
int | size | Bytes to read. |
Returns
Type | Description |
---|---|
byte[] | Array of bytes. |
ReadArrayCount()
Reads a count of an array from parcel object.
Declaration
public int ReadArrayCount()
Returns
Type | Description |
---|---|
int | Array count. |
ReadBool()
Reads a bool value from parcel object.
Declaration
public bool ReadBool()
Returns
Type | Description |
---|---|
bool | bool data. |
ReadBundle()
Reads a Bundle value from parcel object.
Declaration
public Bundle ReadBundle()
Returns
Type | Description |
---|---|
Bundle | Bundle data. |
ReadByte()
Reads a byte value from parcel object.
Declaration
public byte ReadByte()
Returns
Type | Description |
---|---|
byte | byte data. |
ReadDouble()
Reads a double value from parcel object.
Declaration
public double ReadDouble()
Returns
Type | Description |
---|---|
double | double data. |
ReadFloat()
Reads a float value from parcel object.
Declaration
public float ReadFloat()
Returns
Type | Description |
---|---|
float | float data. |
ReadInt()
Reads an int value from parcel object.
Declaration
public int ReadInt()
Returns
Type | Description |
---|---|
int | int data. |
ReadLong()
Reads a long value from parcel object.
Declaration
public long ReadLong()
Returns
Type | Description |
---|---|
long | long data. |
ReadShort()
Reads a short value from parcel object.
Declaration
public short ReadShort()
Returns
Type | Description |
---|---|
short | short data. |
ReadString()
Reads a string value from parcel object.
Declaration
public string ReadString()
Returns
Type | Description |
---|---|
string | string data. |
Send(Port)
Sends parcel data through the port.
Declaration
public void Send(Port p)
Parameters
Type | Name | Description |
---|---|---|
Port | p | The RPC port object for writing data. |
Exceptions
Type | Condition |
---|---|
InvalidIOException | Thrown when an internal IO error occurs. |
Write(byte[])
Writes bytes into parcel object.
Declaration
public void Write(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
byte[] | bytes | Array of bytes. |
WriteArrayCount(int)
Writes a count of an array into parcel object.
Declaration
public void WriteArrayCount(int cnt)
Parameters
Type | Name | Description |
---|---|---|
int | cnt | Array count. |
WriteBool(bool)
Writes a bool value into parcel object.
Declaration
public void WriteBool(bool b)
Parameters
Type | Name | Description |
---|---|---|
bool | b | bool data. |
WriteBundle(Bundle)
Writes a Bundle data into parcel object.
Declaration
public void WriteBundle(Bundle b)
Parameters
Type | Name | Description |
---|---|---|
Bundle | b | Bundle data. |
WriteByte(byte)
Writes a byte value into parcel object.
Declaration
public void WriteByte(byte b)
Parameters
Type | Name | Description |
---|---|---|
byte | b | byte data. |
WriteDouble(double)
Writes a double value into parcel object.
Declaration
public void WriteDouble(double b)
Parameters
Type | Name | Description |
---|---|---|
double | b | double data. |
WriteFloat(float)
Writes a float value into parcel object.
Declaration
public void WriteFloat(float b)
Parameters
Type | Name | Description |
---|---|---|
float | b | float data. |
WriteInt(int)
Writes an int value into parcel object.
Declaration
public void WriteInt(int b)
Parameters
Type | Name | Description |
---|---|---|
int | b | int data. |
WriteLong(long)
Writes a long value into parcel object.
Declaration
public void WriteLong(long b)
Parameters
Type | Name | Description |
---|---|---|
long | b | long data. |
WriteShort(short)
Writes a short value into parcel object.
Declaration
public void WriteShort(short b)
Parameters
Type | Name | Description |
---|---|---|
short | b | short data. |
WriteString(string)
Writes a string value into parcel object.
Declaration
public void WriteString(string b)
Parameters
Type | Name | Description |
---|---|---|
string | b | string data. |