Kiwi Engine
VM for interpreter
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Functions
KEArray.h File Reference

Array of KEValue objects. More...

#include <Coconut/Coconut.h>
#include "KEObject.h"
#include "KEForwarders.h"

Go to the source code of this file.

Data Structures

struct  KEArray
 Array of KEValue. More...
 

Functions

struct KEArrayKEAllocateArray (struct CNResource *resource)
 Allocate value array. More...
 
void KESetValueToArray (struct KEArray *dst, uint64_t index, struct KEValue *src)
 Set value to the array at the given index. More...
 
void KEAddValueToArray (struct KEArray *dst, struct KEValue *src)
 Add vaoue as the last element of the array. More...
 
void KEDumpArray (struct CNText *outbuf, struct KEArray *src)
 Dump all elements in value array. More...
 

Detailed Description

Array of KEValue objects.

Copyright
Copyright (C) 2013 Steel Wheels Project

Function Documentation

void KEAddValueToArray ( struct KEArray dst,
struct KEValue src 
)

Add vaoue as the last element of the array.

Parameters
dstDestination array
srcSource value
struct KEArray* KEAllocateArray ( struct CNResource *  resource)

Allocate value array.

Returns
Allocated array
Parameters
resourceResource to allocate the array
void KEDumpArray ( struct CNText *  outbuf,
struct KEArray src 
)

Dump all elements in value array.

Parameters
outbufOutput buffer
srcSource value array
void KESetValueToArray ( struct KEArray dst,
uint64_t  index,
struct KEValue src 
)

Set value to the array at the given index.

Parameters
dstDestination array
indexIndex to set the source
srcSource value