BiffCodePageRecord Struct
Definition
Represents a decoded CODEPAGE record: the code page byte strings in the stream are encoded in.
public readonly struct BiffCodePageRecord : IEquatable<BiffCodePageRecord>
- Implements
- Inherited Members
- Extension Methods
Remarks
The record identifier is CodePage. The payload is a single 16-bit value in both versions. Reading the record also updates CodePage, so the byte strings that follow decode with it; CodePage exposes the normalized Windows code page number.
Constructors
BiffCodePageRecord(ushort)
Represents a decoded CODEPAGE record: the code page byte strings in the stream are encoded in.
public BiffCodePageRecord(ushort RawValue)
Parameters
RawValueushortThe value as stored, including the private markers for Apple Roman (
0x8000) and the legacy ANSI page (0x8001).
Remarks
The record identifier is CodePage. The payload is a single 16-bit value in both versions. Reading the record also updates CodePage, so the byte strings that follow decode with it; CodePage exposes the normalized Windows code page number.
- See Also
Properties
CodePage
Gets the Windows code page number the value denotes.
public int CodePage { get; }
Property Value
- int
The normalized code page; 1200 denotes UTF-16LE text in a BIFF8 stream.
RawValue
The value as stored, including the private markers for Apple Roman (0x8000) and the legacy ANSI page (0x8001).
public ushort RawValue { get; init; }
Property Value
Methods
Deconstruct(out ushort)
public void Deconstruct(out ushort RawValue)
Parameters
RawValueushort
Equals(BiffCodePageRecord)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BiffCodePageRecord other)
Parameters
otherBiffCodePageRecordAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(BiffCodePageRecord, BiffCodePageRecord)
public static bool operator ==(BiffCodePageRecord left, BiffCodePageRecord right)
Parameters
leftBiffCodePageRecordrightBiffCodePageRecord
Returns
operator !=(BiffCodePageRecord, BiffCodePageRecord)
public static bool operator !=(BiffCodePageRecord left, BiffCodePageRecord right)
Parameters
leftBiffCodePageRecordrightBiffCodePageRecord
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |