/// <summary> /// Writes a four-byte signed integer to the current stream and advances the stream /// position by four bytes. /// </summary> /// <param name="value">The four-byte signed integer to write.</param> /// <returns>Returns <see langword="true"/> if successful; otherwise, returns <see langword="false"/>.</returns> public bool WriteInt32(int value) { if (_buffer != null && _buffer.CanWrite) { _converter.SetInt(value, 0); _buffer.Write(_converter.Buffer, 0, WoffBuffer.SizeOfInt); return(true); } return(false); }