Sha256: 495c37d397eff7549f097098f3685dfc7ee45cc2816daf52f5d29987562e9de9

Contents?: true

Size: 191 Bytes

Versions: 4

Compression:

Stored size: 191 Bytes

Contents

#include "xot/util.h"


namespace Xot
{


	int
	bit2byte (int bits)
	{
		if ((bits % 8) != 0) return -1;
		return bits / 8;
	}

	int
	byte2bit (int bytes)
	{
		return bytes * 8;
	}


}// Xot

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xot-0.1.7 src/util.cpp
xot-0.1.6 src/util.cpp
xot-0.1.5 src/util.cpp
xot-0.1.4 src/util.cpp