about summary refs log tree commit diff
path: root/compiler/rustc_serialize/src/opaque.rs
AgeCommit message (Expand)AuthorLines
2023-11-22Call FileEncoder::finish in rmeta encodingBen Kimock-7/+36
2023-09-22Open the FileEncoder file for reading and writingBen Kimock-1/+6
2023-09-20PR feedbackBen Kimock-32/+54
2023-09-10Reimplement FileEncoder with a small-write optimizationBen Kimock-196/+74
2023-09-04Use a specialized varint + bitpacking scheme for DepGraph encodingBen Kimock-1/+1
2023-05-15Fix the `FileEncoder` buffer size.Nicholas Nethercote-33/+11
2023-05-04Factor out more repeated code in `{write,read}_leb128!`.Nicholas Nethercote-95/+44
2023-05-04Rename `file_encoder_write_leb128!`.Nicholas Nethercote-9/+9
2023-05-04Reorder some `MemDecoder` methods.Nicholas Nethercote-10/+10
2023-05-02Remove `MemEncoder`.Nicholas Nethercote-125/+4
2023-04-28Remove `MemDecoder::read_byte`.Nicholas Nethercote-14/+9
2023-04-28Add some provided methods to `Encoder`/`Decoder`.Nicholas Nethercote-76/+0
2023-04-28Remove a low-value assertion.Nicholas Nethercote-7/+2
2023-04-28Remove `MemDecoder::read_raw_bytes_inherent`.Nicholas Nethercote-19/+11
2023-04-23Rewrite MemDecoder around pointers not a sliceBen Kimock-36/+119
2023-04-06Remove f32 & f64 from MemDecoder/MemEncoderScott McMurray-36/+0
2022-12-10compiler: remove unnecessary imports and qualified pathsKaDiWa-1/+0
2022-11-29rename `{max=>largest}_max_leb128_len`Maybe Waffle-3/+3
2022-11-29Replace a macro with a functionMaybe Waffle-5/+5
2022-11-27Prefer doc comments over `//`-comments in compilerMaybe Waffle-13/+13
2022-09-20add comment explaining read permissionsSikkema, Isaac-0/+2
2022-08-25use `File::options()` instead of `File::create()`Sikkema, Isaac-1/+1
2022-07-02use BufReader for counting zero bytesYoshiki Matsuda-0/+4
2022-06-16Move `finish` out of the `Encoder` trait.Nicholas Nethercote-17/+11
2022-06-14Rename rustc_serialize::opaque::Encoder as MemEncoder.Nicholas Nethercote-26/+26
2022-06-10Revert dc08bc51f2c58a0f5f815a07f9bb3d671153b5a1.Nicholas Nethercote-11/+17
2022-06-10Revert b983e42936feab29f6333e9835913afc6b4a394e.Nicholas Nethercote-26/+26
2022-06-08Rename `rustc_serialize::opaque::Encoder` as `MemEncoder`.Nicholas Nethercote-26/+26
2022-06-08Move `finish` out of the `Encoder` trait.Nicholas Nethercote-17/+11
2022-06-08Use delayed error handling for `Encodable` and `Encoder` infallible.Nicholas Nethercote-110/+130
2022-06-08Don't pass in a vector to `Encoder::new`.Nicholas Nethercote-2/+2
2022-06-03Remove emit_unitbjorn3-10/+0
2022-02-22Delete Decoder::read_unitMark Rousskov-5/+0
2022-02-22Provide copy-free access to raw Decoder bytesMark Rousskov-13/+6
2022-02-22Provide raw &str access from DecoderMark Rousskov-3/+2
2022-01-31Remove two unnecessary transmutes from opaque Encoder and Decoderbjorn3-4/+3
2022-01-22Address review comments.Nicholas Nethercote-2/+1
2022-01-22Make `Decodable` and `Decoder` infallible.Nicholas Nethercote-48/+41
2022-01-22Rename `Decoder::read_nil` and `read_unit`.Nicholas Nethercote-1/+1
2022-01-15Auto merge of #92604 - nnethercote:optimize-impl_read_unsigned_leb128, r=mich...bors-5/+1
2022-01-07Modify the buffer position directly when reading leb128 values.Nicholas Nethercote-5/+1
2021-12-28Do not use LEB128 for encoding u16 and i16Jakub Beránek-8/+15
2021-12-06avoid string validation in rustc_serialize, check a marker byte insteadThe 8472-4/+17
2021-03-25Allow for reading raw bytes from rustc_serialize::Decoder without unsafe code.Michael Woerister-29/+15
2021-03-19Move raw bytes handling to Encoder/Decoder.Camille GILLOT-44/+46
2021-03-18Simplify IntEncodedWithFixedSize.Camille GILLOT-13/+5
2021-03-18Move IntEncodedWithFixedSize to rustc_serialize.Camille GILLOT-0/+48
2021-01-11rustc_serialize: fix incorrect signed LEB128 decodingTyson Nottingham-20/+12
2021-01-11Serialize incr comp structures to file via fixed-size bufferTyson Nottingham-22/+389
2021-01-01rustc_serialize: specialize opaque decoding of some u8 sequencesTyson Nottingham-4/+25