Class Parcel
Definition
- Namespace:
- Tizen.Applications.RPCPort
- Assembly:
- Tizen.Applications.Common.dll
- API Level:
- 5
The class that helps to perform marshalling and unmarshalling for RPC.
public class Parcel : IDisposable
- Inheritance
-
Parcel
- Implements
Constructors
View SourceParcel()
Constructor for this class.
Declaration
public Parcel()
Exceptions
Type | Condition |
---|---|
InvalidIOException | Thrown when an internal IO error occurs. |
API Level: 5
View SourceParcel(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. |
API Level: 5
Methods
View SourceDispose()
Release all the resources used by the class Parcel.
Declaration
public void Dispose()
API Level: 5
View SourceFinalize()
Finalizer of the class Parcel.
Declaration
protected void Finalize()
Read(Int32)
Reads bytes from parcel object.
Declaration
public byte[] Read(int size)
Parameters
Type | Name | Description |
---|---|---|
Int32 | size | Bytes to read. |
Returns
Type | Description |
---|---|
Byte[] | Array of bytes. |
API Level: 5
View SourceReadArrayCount()
Reads a count of an array from parcel object.
Declaration
public int ReadArrayCount()
Returns
Type | Description |
---|---|
Int32 | Array count. |
API Level: 5
View SourceReadBool()
Reads a bool value from parcel object.
Declaration
public bool ReadBool()
Returns
Type | Description |
---|---|
Boolean | bool data. |
API Level: 5
View SourceReadBundle()
Reads a Bundle value from parcel object.
Declaration
public Bundle ReadBundle()
Returns
Type | Description |
---|---|
Bundle | Bundle data. |
API Level: 5
View SourceReadByte()
Reads a byte value from parcel object.
Declaration
public byte ReadByte()
Returns
Type | Description |
---|---|
Byte | byte data. |
API Level: 5
View SourceReadDouble()
Reads a double value from parcel object.
Declaration
public double ReadDouble()
Returns
Type | Description |
---|---|
Double | double data. |
API Level: 5
View SourceReadFloat()
Reads a float value from parcel object.
Declaration
public float ReadFloat()
Returns
Type | Description |
---|---|
Single | float data. |
API Level: 5
View SourceReadInt()
Reads an int value from parcel object.
Declaration
public int ReadInt()
Returns
Type | Description |
---|---|
Int32 | int data. |
API Level: 5
View SourceReadLong()
Reads a long value from parcel object.
Declaration
public long ReadLong()
Returns
Type | Description |
---|---|
Int64 | long data. |
API Level: 5
View SourceReadShort()
Reads a short value from parcel object.
Declaration
public short ReadShort()
Returns
Type | Description |
---|---|
Int16 | short data. |
API Level: 5
View SourceReadString()
Reads a string value from parcel object.
Declaration
public string ReadString()
Returns
Type | Description |
---|---|
String | string data. |
API Level: 5
View SourceSend(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. |
API Level: 5
View SourceWrite(Byte[])
Writes bytes into parcel object.
Declaration
public void Write(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | bytes | Array of bytes. |
API Level: 5
View SourceWriteArrayCount(Int32)
Writes a count of an array into parcel object.
Declaration
public void WriteArrayCount(int cnt)
Parameters
Type | Name | Description |
---|---|---|
Int32 | cnt | Array count. |
API Level: 5
View SourceWriteBool(Boolean)
Writes a bool value into parcel object.
Declaration
public void WriteBool(bool b)
Parameters
Type | Name | Description |
---|---|---|
Boolean | b | bool data. |
API Level: 5
View SourceWriteBundle(Bundle)
Writes a Bundle data into parcel object.
Declaration
public void WriteBundle(Bundle b)
Parameters
Type | Name | Description |
---|---|---|
Bundle | b | Bundle data. |
API Level: 5
View SourceWriteByte(Byte)
Writes a byte value into parcel object.
Declaration
public void WriteByte(byte b)
Parameters
Type | Name | Description |
---|---|---|
Byte | b | byte data. |
API Level: 5
View SourceWriteDouble(Double)
Writes a double value into parcel object.
Declaration
public void WriteDouble(double b)
Parameters
Type | Name | Description |
---|---|---|
Double | b | double data. |
API Level: 5
View SourceWriteFloat(Single)
Writes a float value into parcel object.
Declaration
public void WriteFloat(float b)
Parameters
Type | Name | Description |
---|---|---|
Single | b | float data. |
API Level: 5
View SourceWriteInt(Int32)
Writes an int value into parcel object.
Declaration
public void WriteInt(int b)
Parameters
Type | Name | Description |
---|---|---|
Int32 | b | int data. |
API Level: 5
View SourceWriteLong(Int64)
Writes a long value into parcel object.
Declaration
public void WriteLong(long b)
Parameters
Type | Name | Description |
---|---|---|
Int64 | b | long data. |
API Level: 5
View SourceWriteShort(Int16)
Writes a short value into parcel object.
Declaration
public void WriteShort(short b)
Parameters
Type | Name | Description |
---|---|---|
Int16 | b | short data. |
API Level: 5
View SourceWriteString(String)
Writes a string value into parcel object.
Declaration
public void WriteString(string b)
Parameters
Type | Name | Description |
---|---|---|
String | b | string data. |