Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Write() [7/21]

virtual void System.IO.BinaryWriter.Write ( char[] chars,
int index,
int count )
inlinevirtualinherited

Definition at line 193 of file BinaryWriter.cs.

194 {
195 if (chars == null)
196 {
197 throw new ArgumentNullException("chars");
198 }
199 if (index < 0)
200 {
201 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
202 }
203 if (count < 0)
204 {
205 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
206 }
207 if (index > chars.Length - count)
208 {
209 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_IndexCount);
210 }
211 WriteCharsCommonWithoutLengthPrefix(chars.AsSpan(index, count), useThisWriteOverride: false);
212 }
void WriteCharsCommonWithoutLengthPrefix(ReadOnlySpan< char > chars, bool useThisWriteOverride)

References System.SR.ArgumentOutOfRange_IndexCount, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.chars, System.count, System.index, and System.IO.BinaryWriter.WriteCharsCommonWithoutLengthPrefix().