YCPBuiltinByteblock.cc File Reference

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

Defines

#define ETC   0, NULL, constTypePtr(), NULL
#define ETCf   NULL, constTypePtr(), NULL

Functions

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

Variables

StaticDeclaration static_declarations

Define Documentation

#define ETC   0, NULL, constTypePtr(), NULL

#define ETCf   NULL, constTypePtr(), NULL


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 a sunny day for yast2-core by doxygen 1.5.9