blob: ac39a02aaf93206f6aeb7aa38ef8e2334f7c22e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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 {
std.debug.print("decode: ", .{});
try io.printStdout(v);
_ = d;
return v;
}
|