// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details #pragma once #include #include #include namespace Luau { template T read(const char* data, size_t& offset) { T result; memcpy(&result, data + offset, sizeof(T)); offset += sizeof(T); return result; } unsigned int readVarInt(const char* data, size_t& offset); uint64_t readVarInt64(const char* data, size_t& offset); } // namespace Luau