User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_stream

TGIS_Stream class

DK11 for .NET | TatukGIS.NDK.TGIS_Stream | Classes | Constructors | Methods | Properties

Enhanced stream. Added number of functions like ReadLine, ReadToken, ReadString, WriteString.

Available also on: Delphi | Java.

Syntax

// C#
public class TGIS_Stream : TGIS_BaseStream
{
}
' VisualBasic
Public Class TGIS_Stream
  Inherits TGIS_BaseStream
End Class
// Oxygene
type
  TGIS_Stream = public class( TGIS_BaseStream )
  end;

Inheritance

→ TGIS_BaseStream

Constructors

Inherited Overrides Protected
Name Visibility Description
TGIS_Stream() public Create a stream object.
TGIS_Stream(TGIS_ReadWriteEvent, TGIS_ReadWriteEvent) public Create a stream object.
TGIS_Stream(TStream) public Create a stream manager on existing stream.
TGIS_Stream(TStream, TGIS_ReadWriteEvent, TGIS_ReadWriteEvent) public Create a stream manager on existing stream.

Methods

Inherited Overrides Protected
Name Visibility Description
Eof public Check if stream reached End Of File.
ReadAsciiString(int) public Read string of the width from the stream.
ReadAsciiString(string, int) public Read string of the width from the stream.
ReadBytesCnt(TBytes, int) public Read array of bytes
ReadBytesCnt(TBytes, int, int) public Read array of bytes into a buffer at given offset.
ReadBytesSafe public Read array of bytes
ReadLine public Read line from text file up to CR.
ReadString(int) public Read string of the width from the stream.
ReadString(string, int) public Read string of the width from the stream.
ReadToken public Read token (delimited by a space char) from text file.
WriteBytes public Write array of bytes
WriteBytesCnt public Write array of bytes
WriteLine public Write text line ended with CR/LF to the stream.
WriteString public Write a string to the stream.
WriteStringCnt public Write a string to the stream.
WriteVarAsString public Write a variant as a string to the stream.

Properties

Inherited Protected
Name Visibility Description
CodePage public Code page of the stream.

Remarks

Available metadata keys:

Metadata Values Default Description
TGIS_Stream.PatrolRead TRUE FALSE TRUE If True, use patrol read to fetch whole file into OS cache.

References

2019/03/13 01:18