69 static const UInt32 BUFFER_SIZE = 100;
84 byte m_readBuffer[BUFFER_SIZE+2];
87 byte ByteFromBuffer ();
88 UInt16 UInt16FromBuffer ();
90 void ResetToFileStart ();
91 void RestoreByteToBuffer (
UInt16 restore);
92 void RestoreUInt16ToBuffer (
UInt16 restore);
93 void WriteEncodingBOM ();
#define BENTLEYDLL_EXPORT
Definition: Bentley.h:249
TextFileReadStatus
The possible return values for text file reads.
Definition: BeTextFile.h:45
TextFileOptions
The possible options for text file reading.
Definition: BeTextFile.h:37
Open for both read and write.
wchar_t WChar
Definition: Bentley.h:223
uint16_t UInt16
Definition: Bentley.r.h:118
TextFileEncoding
The possible BeTextFile open modes.
Definition: BeTextFile.h:29
wchar_t const * WCharCP
Definition: Bentley.h:224
uint32_t UInt32
Definition: Bentley.r.h:128
#define BEGIN_BENTLEY_NAMESPACE
Definition: Bentley.r.h:24
relevant only for getString, default behavior is to return the line without the newlines.
Encountered the end of the file.
BeFileSeekOrigin
Possible origin modes for the SetPosition method.
Definition: BeFile.h:67
Write current locale multibyte output file.
A bad argument was passed to the method.
relevant only for getString, also turns on KeepNewLine.
unsigned char byte
Definition: Bentley.r.h:144
TextFileOpenType
The possible BeTextFile open modes.
Definition: BeTextFile.h:21
uint64_t UInt64
Definition: Bentley.r.h:131
Concrete class that can be used to implement the reference-counting pattern.
Definition: RefCounted.h:109
BeFile provides a way to open a file and methods to access its contents and attributes.
Definition: BeFile.h:78
#define END_BENTLEY_NAMESPACE
Definition: Bentley.r.h:25
RefCountedPtr< struct BeTextFile > BeTextFilePtr
A reference counted pointer to a BeTextFile instance.
Definition: BeTextFile.h:61
Provides Bentley implemented file management functions (Bentley/BeFile.h).
Write little-endian UTF-16 encoded output file.
TextFileWriteStatus
The possible return values for text file writes.
Definition: BeTextFile.h:53
Reads and Writes Text Files regardless of whether they are encoded on disk as locale-encoded ASCII...
Definition: BeTextFile.h:67
A string class that has many of the same capabilities as std::string, plus additional functions such ...
Definition: WString.h:51
BeFileStatus
The possible status returns for the BeFile methods.
Definition: BeFile.h:28