public void writeByte(byte b) {assert slice != null;if (slice[upto] != 0) {upto = pool.allocSlice(slice, upto);slice = pool.buffer;offset0 = pool.byteOffset;assert slice != null;}slice[upto++] = b;assert upto != slice.length;}
public override void WriteByte(byte b){Debug.Assert(slice != null);if (slice[upto] != 0){upto = pool.AllocSlice(slice, upto);slice = pool.Buffer;offset0 = pool.ByteOffset;Debug.Assert(slice != null);}slice[upto++] = (byte)b;Debug.Assert(upto != slice.Length);}