From 4bc721c3bf7589b519c5730d093f704ce56e3f09 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Mon, 29 Jun 2026 21:43:54 +0900 Subject: refactor: MCP層をmcpc APIベースに刷新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 独自JSON-RPC処理をmcpcへ置き換え - 各MCPツールを個別ソースへ分離 - 共通コンテキストと登録処理を整理 - mcpc互換修正と統合テストを更新 --- src/storage/codec.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/storage/codec.h (limited to 'src/storage/codec.h') diff --git a/src/storage/codec.h b/src/storage/codec.h new file mode 100644 index 0000000..aafd174 --- /dev/null +++ b/src/storage/codec.h @@ -0,0 +1,13 @@ +#ifndef TINY_CONVMEM_STORAGE_CODEC_H +#define TINY_CONVMEM_STORAGE_CODEC_H + +#include +#include + +void tiny_codec_put_u32(unsigned char *output, uint32_t value); +void tiny_codec_put_u64(unsigned char *output, uint64_t value); +uint32_t tiny_codec_get_u32(const unsigned char *input); +uint64_t tiny_codec_get_u64(const unsigned char *input); +uint32_t tiny_codec_crc32(const unsigned char *data, size_t length); + +#endif -- cgit v1.2.3