Corewar documentation 1.0.0
Loading...
Searching...
No Matches
coding_byte.c File Reference

The file containing the coding_byte functions. More...

Functions

char get_code_byte_index (char coding_byte, int index)
 Get the type of byte with the coding byte at the index.
 
char get_size_from_type (char type, bool max_size)
 Get the size of the type.
 
char get_size_of_coding_byte (char coding_byte, bool max_size)
 Get the size of the coding byte.
 

Detailed Description

The file containing the coding_byte functions.

Function Documentation

◆ get_code_byte_index()

char get_code_byte_index ( char coding_byte,
int index )

Get the type of byte with the coding byte at the index.

Parameters
coding_byteThe coding byte to get the index
indexThe index of the coding byte value
Returns
char The type of byte

◆ get_size_from_type()

char get_size_from_type ( char type,
bool max_size )

Get the size of the type.

Parameters
typeThe type to get the size
max_sizeThe max size of the type
Returns
char The size of the type

◆ get_size_of_coding_byte()

char get_size_of_coding_byte ( char coding_byte,
bool max_size )

Get the size of the coding byte.

Parameters
coding_byteThe coding byte to get the size
max_sizeThe max size of the coding byte
Returns
char The size of the coding byte