private static void Paths(StreamWriter w, StreamReader r) { Decode(r, (codec, obj) => { var p = Multicodec.HeaderPath(codec.Last.Header); w.WriteLine(Encoding.UTF8.GetString(p)); return(true); }); }
private static void H2P(StreamWriter w, StreamReader r) { while (true) { var hdr = Multicodec.ReadHeader(r.BaseStream); if (hdr == null || hdr.Length == 0) { return; } var p = Encoding.UTF8.GetString(Multicodec.HeaderPath(hdr)); w.WriteLine(p); } }