)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000067,"name":"jrhahn","email":"mail.jhahn@gmail.com","username":"jrhahn"},"change_message_id":"2287d0b0b5c0a774ac5d9f3ddc705bacf6544ac1","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":7,"id":"e8c29d6c_e4d0a3e6","updated":"2022-12-30 09:46:40.000000000","message":"Go code consistency and making the structure public","commit_id":"277c46513b53e695048568480cf65beefa66f062"},{"author":{"_account_id":1000036,"name":"flokli","email":"flokli@flokli.de","username":"flokli"},"change_message_id":"a4a777f5eff1d166f5516f3127eeabbab5000c7d","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"cb266e4a_7015a0e4","in_reply_to":"e8c29d6c_e4d0a3e6","updated":"2022-12-30 10:56:56.000000000","message":"Done","commit_id":"277c46513b53e695048568480cf65beefa66f062"}],"tvix/store/src/nixbase32.rs":[{"author":{"_account_id":1000067,"name":"jrhahn","email":"mail.jhahn@gmail.com","username":"jrhahn"},"change_message_id":"2287d0b0b5c0a774ac5d9f3ddc705bacf6544ac1","unresolved":true,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"/// Nixbase32Encoding wraps a data_encoding::Encoding internally."},{"line_number":5,"context_line":"/// We can\u0027t use it directly, as nix also reads in characters in reverse order."},{"line_number":6,"context_line":"struct Nixbase32Encoding {"},{"line_number":7,"context_line":"    encoding: data_encoding::Encoding,"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-rustsrc","patch_set":7,"id":"bd4422e4_fd28ee6b","line":6,"updated":"2022-12-30 09:46:40.000000000","message":"pub","commit_id":"277c46513b53e695048568480cf65beefa66f062"},{"author":{"_account_id":1000036,"name":"flokli","email":"flokli@flokli.de","username":"flokli"},"change_message_id":"84769ae2bff372f3296e503387bbcecf1ca192e4","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"/// Nixbase32Encoding wraps a data_encoding::Encoding internally."},{"line_number":5,"context_line":"/// We can\u0027t use it directly, as nix also reads in characters in reverse order."},{"line_number":6,"context_line":"struct Nixbase32Encoding {"},{"line_number":7,"context_line":"    encoding: data_encoding::Encoding,"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-rustsrc","patch_set":7,"id":"9de7faf6_7681d9a8","line":6,"in_reply_to":"bd4422e4_fd28ee6b","updated":"2022-12-30 10:56:41.000000000","message":"Ack. I think at some point we might want to move parts of this outside the store crate as well, to allow people to use this code in other places, but let\u0027s leave that up to later.","commit_id":"277c46513b53e695048568480cf65beefa66f062"},{"author":{"_account_id":1000067,"name":"jrhahn","email":"mail.jhahn@gmail.com","username":"jrhahn"},"change_message_id":"2287d0b0b5c0a774ac5d9f3ddc705bacf6544ac1","unresolved":true,"context_lines":[{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"lazy_static! {"},{"line_number":11,"context_line":"    static ref NIXBASE32: Nixbase32Encoding \u003d nixbase32_encoding();"},{"line_number":12,"context_line":"}"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"impl Nixbase32Encoding {"}],"source_content_type":"text/x-rustsrc","patch_set":7,"id":"74ae7473_32bda6d1","line":11,"updated":"2022-12-30 09:46:40.000000000","message":"pub","commit_id":"277c46513b53e695048568480cf65beefa66f062"},{"author":{"_account_id":1000036,"name":"flokli","email":"flokli@flokli.de","username":"flokli"},"change_message_id":"84769ae2bff372f3296e503387bbcecf1ca192e4","unresolved":false,"context_lines":[{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"lazy_static! {"},{"line_number":11,"context_line":"    static ref NIXBASE32: Nixbase32Encoding \u003d nixbase32_encoding();"},{"line_number":12,"context_line":"}"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"impl Nixbase32Encoding {"}],"source_content_type":"text/x-rustsrc","patch_set":7,"id":"dee90d93_63b867ea","line":11,"in_reply_to":"74ae7473_32bda6d1","updated":"2022-12-30 10:56:41.000000000","message":"ack","commit_id":"277c46513b53e695048568480cf65beefa66f062"},{"author":{"_account_id":1000067,"name":"jrhahn","email":"mail.jhahn@gmail.com","username":"jrhahn"},"change_message_id":"2287d0b0b5c0a774ac5d9f3ddc705bacf6544ac1","unresolved":true,"context_lines":[{"line_number":29,"context_line":"    }"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    /// Returns the decoded length of an input of length len."},{"line_number":32,"context_line":"    pub fn decode_len(\u0026self, len: usize) -\u003e Result\u003cusize, DecodeError\u003e {"},{"line_number":33,"context_line":"        self.encoding.decode_len(len)"},{"line_number":34,"context_line":"    }"},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rustsrc","patch_set":7,"id":"b5fef460_fec9b8d0","line":32,"updated":"2022-12-30 09:46:40.000000000","message":"If you want to make it consistent with the go version: decoded_len","commit_id":"277c46513b53e695048568480cf65beefa66f062"},{"author":{"_account_id":1000036,"name":"flokli","email":"flokli@flokli.de","username":"flokli"},"change_message_id":"84769ae2bff372f3296e503387bbcecf1ca192e4","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    }"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    /// Returns the decoded length of an input of length len."},{"line_number":32,"context_line":"    pub fn decode_len(\u0026self, len: usize) -\u003e Result\u003cusize, DecodeError\u003e {"},{"line_number":33,"context_line":"        self.encoding.decode_len(len)"},{"line_number":34,"context_line":"    }"},{"line_number":35,"context_line":""}],"source_content_type":"text/x-rustsrc","patch_set":7,"id":"b6fe3df9_5c920980","line":32,"in_reply_to":"b5fef460_fec9b8d0","updated":"2022-12-30 10:56:41.000000000","message":"go-nix exposed a similar interface as `encoding/base64.StdEncoding`.\n\nHere, I simply used a subset of the API exposed by the data_encoding crate, which calls this decode_len. It\u0027s the same name that xsnappy uses as well.\n\nI think this is called {en,de}code_len to emphasize the length can be calculated without actually having to encode or decode.","commit_id":"277c46513b53e695048568480cf65beefa66f062"},{"author":{"_account_id":1000067,"name":"jrhahn","email":"mail.jhahn@gmail.com","username":"jrhahn"},"change_message_id":"2287d0b0b5c0a774ac5d9f3ddc705bacf6544ac1","unresolved":true,"context_lines":[{"line_number":34,"context_line":"    }"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    /// Returns the encoded length of an input of length len"},{"line_number":37,"context_line":"    pub fn encode_len(\u0026self, len: usize) -\u003e usize {"},{"line_number":38,"context_line":"        self.encoding.encode_len(len)"},{"line_number":39,"context_line":"    }"},{"line_number":40,"context_line":"}"}],"source_content_type":"text/x-rustsrc","patch_set":7,"id":"16f0d07f_f38f55f5","line":37,"updated":"2022-12-30 09:46:40.000000000","message":"and encoded_len","commit_id":"277c46513b53e695048568480cf65beefa66f062"},{"author":{"_account_id":1000036,"name":"flokli","email":"flokli@flokli.de","username":"flokli"},"change_message_id":"84769ae2bff372f3296e503387bbcecf1ca192e4","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    }"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    /// Returns the encoded length of an input of length len"},{"line_number":37,"context_line":"    pub fn encode_len(\u0026self, len: usize) -\u003e usize {"},{"line_number":38,"context_line":"        self.encoding.encode_len(len)"},{"line_number":39,"context_line":"    }"},{"line_number":40,"context_line":"}"}],"source_content_type":"text/x-rustsrc","patch_set":7,"id":"8e7749c4_358fde2d","line":37,"in_reply_to":"16f0d07f_f38f55f5","updated":"2022-12-30 10:56:41.000000000","message":"See above.","commit_id":"277c46513b53e695048568480cf65beefa66f062"}]}
