yast2-core
Macros | Functions | Variables
YCPBuiltinByteblock.cc File Reference
#include "ycp/YCPBuiltinByteblock.h"
#include "ycp/YCPByteblock.h"
#include "ycp/YCPInteger.h"
#include "ycp/StaticDeclaration.h"

Macros

#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
 

Macro Definition 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
byteblockVALUE
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
anyVALUE
Returns
byteblock

References YCPElement::isNull(), and YT_BYTEBLOCK.

Referenced by YCPBuiltinByteblock::YCPBuiltinByteblock().

Variable Documentation

StaticDeclaration static_declarations

Generated on a sunny day for yast2-core by doxygen 1.8.11