Entire Class Index | Main Class Index | Cross Index | Global Index

# Class CL_InputSource_NetPacket

InputSource NetPacket Class
Contained in: global
Derived from: CL_InputSource
Derived by: none
Group: Network (NetSessions)

#include <ClanLib/network.h>

### public function member index:

### Construction:

`` | `CL_InputSource_NetPacket` | `(`const` `CL_NetPacket`& `netpacket`)`;
``virtual`` | `~CL_InputSource_NetPacket` | `()`;

### Attributes:

``virtual` `int`` | `tell` | `() `const``;
``virtual` `int`` | `size` | `() `const``;

### Operations:

``virtual` `int`` | `read` | `(`void`* `data`, `int` `size`)`;
``virtual` `void`` | `open` | `()`;
``virtual` `void`` | `close` | `()`;
``virtual` `CL_InputSource`*` | `clone` | `() `const``;
``virtual` `void`` | `seek` | `(`int` `pos`, `SeekEnum` `seek_type`)`;
``virtual` `void`` | `push_position` | `()`;
``virtual` `void`` | `pop_position` | `()`;

### private function member index:

### Implementation:

`` | `CL_InputSource_NetPacket` | `()`;

## Description:

## Function Member Descriptions:

CL_InputSource_NetPacket::CL_InputSource_NetPacket - InputSource NetPacket Constructor
`` `CL_InputSource_NetPacket` `(`const` `CL_NetPacket`& `netpacket`)`;

CL_InputSource_NetPacket::clone - Make a copy of the current inputsource, standing at the same position.
``virtual` `CL_InputSource`*` `clone` `() `const``;

CL_InputSource_NetPacket::close - Closes the input source.
``virtual` `void`` `close` `()`;

CL_InputSource_NetPacket::open - Opens the input source. By default, it is open.
``virtual` `void`` `open` `()`;

CL_InputSource_NetPacket::pop_position - Pops a previous pushed input source position (returns to the position).
``virtual` `void`` `pop_position` `()`;

CL_InputSource_NetPacket::push_position - Pushes the current input source position. The position can be restored again with pop_position.
``virtual` `void`` `push_position` `()`;

CL_InputSource_NetPacket::read - Reads larger amounts of data (no endian and 64 bit conversion).
``virtual` `int`` `read` `(`void`* `data`, `int` `size`)`;

CL_InputSource_NetPacket::seek - Seeks to the specified position in the input source.
``virtual` `void`` `seek` `(`int` `pos`, `SeekEnum` `seek_type`)`;

CL_InputSource_NetPacket::size - Returns the size of the input source
``virtual` `int`` `size` `() `const``;

CL_InputSource_NetPacket::tell - Returns current position in input source.
``virtual` `int`` `tell` `() `const``;

## Variable Member Descriptions: