YCPBuiltinByteblock.cc File Reference

#include "ycp/YCPBuiltinByteblock.h"
#include "ycp/YCPByteblock.h"
#include "ycp/YCPInteger.h"
#include "ycp/StaticDeclaration.h"

Functions

static YCPValue b_tobyteblock (const YCPValue &v)
static YCPValue b_size (const YCPByteblock &v)

Variables

StaticDeclaration static_declarations

Function Documentation

static YCPValue b_size ( const YCPByteblock v  )  [static]

size size-byteblock Returns a size of a byteblock in bytes.

Parameters:
byteblock VALUE
Returns:
integer size(#[03A6f298B5]) -> 5

References YCPElement::isNull().

Referenced by Process::readStderrToBuffer(), Process::readStdoutToBuffer(), and YCPBuiltinByteblock::YCPBuiltinByteblock().

static YCPValue b_tobyteblock ( const YCPValue v  )  [static]

tobyteblock Converts a value to a byteblock.

If the value can't be converted to a byteblock, nilbyteblock is returned.

Parameters:
any VALUE
Returns:
byteblock

References YCPElement::isNull(), and YT_BYTEBLOCK.

Referenced by YCPBuiltinByteblock::YCPBuiltinByteblock().


Variable Documentation


Generated on Wed Dec 3 07:24:55 2008 for yast2-core by  doxygen 1.5.6