TextBuff class | QSYS API Reference Guide

This is the Buffer for UTF8 files. It attempts to read the encoding preamble, which for this encoding should be unicode point \uFEFF which is encoded as EF BB BF

Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll

Inheritance: Object –> ScanBuff

Methods

Signature Description
GetString(Int32, Int32) Returns the string from the buffer betweenthe given file positions. This needs to bedone carefully, as the number of charactersis, in general, not equal to (end - beg).
NewTextBuff(Stream) TextBuff factory. Reads the file preambleand returns a TextBuff, LittleEndTextBuff orBigEndTextBuff according to the result.

string GetString(int beg, int end)

Returns the string from the buffer betweenthe given file positions. This needs to bedone carefully, as the number of charactersis, in general, not equal to (end - beg).

string GetString(int beg, int end)

Parameters

Type Parameter name Description
Int32 beg Begin filepos
Int32 end End filepos

Returns

Type Description
String the sub-string

TextBuff NewTextBuff(Stream strm)

TextBuff factory. Reads the file preambleand returns a TextBuff, LittleEndTextBuff orBigEndTextBuff according to the result.

TextBuff NewTextBuff(Stream strm)

Parameters

Type Parameter name Description
Stream strm The underlying stream

Returns

Type Description
TextBuff the new buffer