31#ifndef SWORD25_PERSISTENCEBLOCK_H
32#define SWORD25_PERSISTENCEBLOCK_H
34#include "sword25/kernel/common.h"
40 static uint getSInt32Size() {
41 return sizeof(
signed int) +
sizeof(
byte);
43 static uint getUInt32Size() {
44 return sizeof(uint) +
sizeof(
byte);
46 static uint getFloat32Size() {
47 return sizeof(float) +
sizeof(
byte);
49 static uint getBoolSize() {
50 return sizeof(byte) +
sizeof(
byte);
53 return static_cast<uint
>(
sizeof(uint) +
string.size() +
sizeof(byte));
68#define CTASSERT(ex) typedef char ctassert_type[(ex) ? 1 : -1]
69CTASSERT(
sizeof(
byte) == 1);
70CTASSERT(
sizeof(
signed int) == 4);
71CTASSERT(
sizeof(uint) == 4);
72CTASSERT(
sizeof(
float) == 4);
Definition: persistenceblock.h:38