User Tools

Site Tools


api:dk11:delphi:gisclasses.tgis_bytes



TGIS_Bytes class

DK for Delphi | GisClasses.TGIS_Bytes | Classes | Constructors | Methods | Properties

Buffer wrapper that provides offset-based access to bytes and typed values.

Available also on: .NET | Java.

Syntax

// Delphi
type
  TGIS_Bytes = class
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_Bytes

Constructors

Inherited Overrides Protected
Name Visibility Description
Create(Integer) public Creates a new internal buffer with the specified size.
Create(Pointer; Integer; Integer) public Creates a buffer wrapper over an existing memory block.
Destroy public Releases owned unmanaged memory.

Methods

Inherited Overrides Protected
Name Visibility Description
CopyFrom public Copies bytes from another buffer into the internal buffer.
CopyTo public Copies bytes from the internal buffer to another buffer.
Dec public Decrements a 32-bit integer value stored at the specified buffer offset.
Inc public Increments a 32-bit integer value stored at the specified buffer offset.
ReadByte public Reads a byte value from the specified buffer offset.
ReadDouble public Reads a double-precision value from the specified buffer offset.
ReadInt32 public Reads a 32-bit integer value from the specified buffer offset.
ReadSingle public Reads a single-precision value from the specified buffer offset.
ReadUInt32 public Reads an unsigned 32-bit integer value from the specified buffer offset.
ReadWord public Reads a word value from the specified buffer offset.
ReallocMem public Resizes the internal memory buffer.
Recreate(Integer; Integer; Integer) public Recreates the internal buffer using new position and size settings.
Recreate(TBytes; Integer; Integer) public Recreates the wrapper over the specified byte array.
Reset public Resets the buffer state to its initial empty position.
WriteByte public Writes a byte value at the specified buffer offset.
WriteDouble public Writes a double-precision value at the specified buffer offset.
WriteInt32 public Writes a 32-bit integer value at the specified buffer offset.

Properties

Inherited Protected
Name Visibility Description
Memory public Gets the underlying memory buffer.
Position public Gets or sets the current start position used for data access.
Size public Gets the buffer length in bytes.

2026/07/11 00:20

Page Tools