YCPByteblockRep Class Reference

YCPValueRep representing a block of bytes. More...

#include <YCPByteblock.h>

Inheritance diagram for YCPByteblockRep:

YCPValueRep YCPElementRep List of all members.

Public Member Functions

const unsigned char * value () const
long size () const
string toString () const
std::ostream & toStream (std::ostream &str) const
YCPOrder compare (const YCPByteblock &s) const
YCPValueType valuetype () const

Protected Member Functions

 YCPByteblockRep (const unsigned char *bytes, long len)
 YCPByteblockRep (bytecodeistream &str, long len)
 ~YCPByteblockRep ()

Private Attributes

const unsigned char * bytes
long len

Friends

class YCPByteblock

Detailed Description

YCPValueRep representing a block of bytes.


Constructor & Destructor Documentation

YCPByteblockRep::YCPByteblockRep const unsigned char *  bytes,
long  len
[protected]
 

Creates a new YCPByteblockRep object.

Parameters:
bytes pointer to a buffer containing the bytes. I'll make me a copy of this, please free the memory yourself, if you need to.
length length of the byte block.

YCPByteblockRep::YCPByteblockRep bytecodeistream str,
long  len
[protected]
 

Creates a new YCPByteblockRep object from a stream. See YCPByteblock (bytecodeistream &) implementation.

YCPByteblockRep::~YCPByteblockRep  )  [protected]
 

Cleans up


Member Function Documentation

YCPOrder YCPByteblockRep::compare const YCPByteblock s  )  const
 

Compares two bytes blocks.

long YCPByteblockRep::size  )  const
 

Returns the number of bytes in the block.

std::ostream & YCPByteblockRep::toStream std::ostream &  str  )  const [virtual]
 

Output value as bytecode to stream

Implements YCPElementRep.

string YCPByteblockRep::toString  )  const [virtual]
 

Returns a string representation of this objects value. Byteblock values are represented in YCP #(byteblockstring), where byteblockstring is some yet to be defined but typical byteblock and date representation.

Implements YCPElementRep.

const unsigned char * YCPByteblockRep::value  )  const
 

Returns the bytes of the block.

YCPValueType YCPByteblockRep::valuetype  )  const [virtual]
 

Returns YT_BYTEBLOCK. See YCPValueRep::type.

Implements YCPValueRep.


Friends And Related Function Documentation

friend class YCPByteblock [friend]
 


Member Data Documentation

const unsigned char* YCPByteblockRep::bytes [private]
 

The byte block

long YCPByteblockRep::len [private]
 

Length of the byte block


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6