public SetInput ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The buffer containing input data. |
offset | int | The offset of the first byte of data. |
count | int | The number of bytes of data to use as input. |
return | void |
public void SetInput(byte[] input, int offset, int count) { if ((state & 8) != 0) { throw new InvalidOperationException("Finish() already called"); } engine.SetInput(input, offset, count); }
/// <summary> /// Sets the data which should be compressed next. This should be /// only called when needsInput indicates that more input is needed. /// The given byte array should not be changed, before needsInput() returns /// true again. /// </summary> /// <param name="input"> /// the buffer containing the input data. /// </param> /// <param name="off"> /// the start of the data. /// </param> /// <param name="len"> /// the length of the data. /// </param> /// <exception cref="System.InvalidOperationException"> /// if the buffer was finished() or ended() or if previous input is still pending. /// </exception> public void SetInput(byte[] input, int off, int len) { if ((state & IS_FINISHING) != 0) { throw new InvalidOperationException("finish()/end() already called"); } engine.SetInput(input, off, len); }
public void SetInput(byte[] input, int offset, int count) { //IL_000f: Unknown result type (might be due to invalid IL or missing references) if (((uint)state & 8u) != 0) { throw new InvalidOperationException("Finish() already called"); } engine.SetInput(input, offset, count); }