Creates a new TNEF reader.
When reading with strict compliance, a TnefError is thrown immediately at the first sign of invalid or corrupted data. When reading with loose compliance, issues are accumulated in complianceStatus unless the stream is too corrupted to continue.
the input stream or bytes.
the default message codepage.
the compliance mode.
Static ReadonlytnefThe expected TNEF stream signature.
ReadonlytnefGets the TNEF property reader.
ReadonlycomplianceGets the compliance mode.
Gets the current compliance status of the TNEF stream.
As the reader progresses, this value may change if errors are encountered.
Gets the attachment key value.
Gets the current attribute's level.
Gets the current attribute's tag.
Gets the length of the current attribute's raw value.
Gets the stream offset of the current attribute's raw value.
Gets the TNEF version.
Gets the message codepage.
Gets the current stream offset.
Gets the current attribute's type.
Set the message codepage.
Invalid codepages are recorded as compliance issues and fall back to Windows-1252 unless strict mode raises a TnefError.
the message codepage.
Reset the compliance status to TnefComplianceStatus.Compliant.
Close the reader.
Dispose the reader.
Set a TNEF compliance error.
In strict mode this raises a TnefError; otherwise it records the error in complianceStatus.
the compliance error.
Optionalcause: unknown
the underlying cause.
Read bytes from the current attribute's raw value.
the buffer to read data into.
the offset into the buffer to start reading data.
the number of bytes to read.
the number of bytes read into the buffer.
Read a single byte.
the byte value.
Read a signed 16-bit integer.
the integer value.
Read a signed 32-bit integer.
the integer value.
Peek at the next signed 32-bit integer without advancing the stream.
the integer value.
Read a signed 64-bit integer.
the integer value.
Read a 32-bit floating point value.
the floating point value.
Read a 64-bit floating point value.
the floating point value.
Skip bytes in the TNEF stream.
the number of bytes to skip.
true if all bytes were skipped; otherwise, false.
A TNEF reader.