PokeLib v0.1.1 PokeLib.Utils View Source

Utility functions for encodeing and decoding pokemon data.

Link to this section Summary

Functions

Pads up to three digits

Gets a part at offset of size

Decodes an integer into three bytes

Encodes an integer into two bytes

Decodes three bytes into an integer

Decodes two bytes into an integer

Link to this section Functions

Pads up to three digits.

Link to this function get_part(data, offset, size, parser \\ nil) View Source

Gets a part at offset of size.

Link to this function integer_to_three_bytes(int) View Source

Decodes an integer into three bytes.

Link to this function integer_to_two_bytes(int) View Source

Encodes an integer into two bytes.

Link to this function three_bytes_to_integer(arg) View Source

Decodes three bytes into an integer.

Link to this function two_bytes_to_integer(arg) View Source

Decodes two bytes into an integer.