internal void HandleStringPoolField(TzdbStreamField field) { CheckSingleField(field, stringPool); using (var stream = field.CreateStream()) { var reader = new DateTimeZoneReader(stream, null); int count = reader.ReadCount(); stringPool = new string[count]; for (int i = 0; i < count; i++) { stringPool[i] = reader.ReadString(); } } }
internal void HandleZone1970LocationsField(TzdbStreamField field) { CheckSingleField(field, zone1970Locations); CheckStringPoolPresence(field); using (var stream = field.CreateStream()) { var reader = new DateTimeZoneReader(stream, stringPool); var count = reader.ReadCount(); var array = new TzdbZone1970Location[count]; for (int i = 0; i < count; i++) { array[i] = TzdbZone1970Location.Read(reader); } zone1970Locations = array; } }