(Config config)
| 32 | private ReadContext _readContext; |
| 33 | |
| 34 | internal Fory(Config config) |
| 35 | { |
| 36 | Config = config; |
| 37 | _typeResolver = new TypeResolver(); |
| 38 | _writeContext = new WriteContext( |
| 39 | new ByteWriter(), |
| 40 | _typeResolver, |
| 41 | Config.TrackRef, |
| 42 | Config.Compatible, |
| 43 | Config.CheckStructVersion); |
| 44 | _readContext = new ReadContext( |
| 45 | new ByteReader(Array.Empty<byte>()), |
| 46 | _typeResolver, |
| 47 | Config); |
| 48 | } |
| 49 | |
| 50 | /// <summary> |
| 51 | /// Gets the immutable runtime configuration. |
no outgoing calls