const builtin = @import("builtin"); const std = @import("std"); const Alloc = std.mem.Allocator; const io = @import("../io.zig"); const value = @import("../value.zig"); const Value = value.Value; const Decoder = @This(); alloc: Alloc, pub fn init(alloc: Alloc) !Decoder { return .{ .alloc = alloc }; } pub fn decodeInPlace(d: *Decoder, v: Value) !Value { if (!builtin.is_test) { std.debug.print("decode: ", .{}); io.printStdout(v) catch @panic("print error"); } _ = d; return v; }