From 4412cba9f6569e8b60874a5089a845399afe6a4c Mon Sep 17 00:00:00 2001 From: CheddarCrisp Date: Tue, 9 Jan 2024 17:55:29 -0500 Subject: [PATCH] Mock codec --- SDBD.Codec/Codec.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SDBD.Codec/Codec.cs b/SDBD.Codec/Codec.cs index 45fcbc7..b03b0de 100644 --- a/SDBD.Codec/Codec.cs +++ b/SDBD.Codec/Codec.cs @@ -2,10 +2,15 @@ public class Codec : ICodec { public Document Decode(byte[] data) { - return new(new (), new byte[0]); + return new( + new () { + { "content-name", "text.txt" } + }, + data + ); } public byte[] Encode(Document document) { - return new byte[0]; + return document.Data; } }