Skip to content

Commit

Permalink
todo: add skip support
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Jan 17, 2024
1 parent 55a3eb5 commit f22e5bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/msgpack.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1770,6 +1770,14 @@ pub fn MsgPack(
}
}

// TODO: add skip support
//
// pub fn skip(self: Self, n: usize) !void {
// const marker_u8 = try self.read_type_marker_u8();
// const marker=try self.marker_u8_to(marker_u8);
// switch (mark) {}
// }

/// read
pub fn read(self: Self, comptime T: type, allocator: Allocator) !read_type_help(T) {
const type_info = @typeInfo(T);
Expand Down

0 comments on commit f22e5bf

Please sign in to comment.