// Common, groups Output and Encoding
// Copyright Alexander Liss


	// ENCODING

#ifndef __COLOR2_H__
#define __COLOR2_H__

#include "color.h"
#include "commbuf.h"


int pack(CommBuffer& d, const Tint& z);
int unpack(Tint& z,const CommBuffer& s,ReadControl& c);

int pack(CommBuffer& d, const Color& z);
int unpack(Color& z,const CommBuffer& s,ReadControl& c);

int pack(CommBuffer& d, const Stain& z);
int unpack(Stain& z,const CommBuffer& s,ReadControl& c);

int pack(CommBuffer& d, const RandomColor& z);
int unpack(RandomColor& z,const CommBuffer& s,ReadControl& c);


#endif