Class TStreamHelper

Unit

Declaration

type TStreamHelper = class helper(TObject) for TStream

Description

Helper class for streams that allows to correctly read and write either little or big endian values.

Hierarchy

  • TObject
  • TStreamHelper

Overview

Methods

Public procedure ReadLE(out Value: Word); overload;
Public procedure ReadLE(out Value: UInt32); overload;
Public procedure ReadLE(out Value: QWord); overload;
Public procedure ReadLE(out Value: SmallInt); overload;
Public procedure ReadLE(out Value: Int32); overload;
Public procedure ReadLE(out Value: Int64); overload;
Public procedure ReadLE(out Value: Single); overload;
Public procedure ReadLE(out Value: Double); overload;
Public procedure ReadLE(out Value: TVector2); overload;
Public procedure ReadLE(out Value: TVector3); overload;
Public procedure ReadLE(out Value: TVector4); overload;
Public procedure ReadBE(out Value: Word); overload;
Public procedure ReadBE(out Value: UInt32); overload;
Public procedure ReadBE(out Value: QWord); overload;
Public procedure ReadBE(out Value: SmallInt); overload;
Public procedure ReadBE(out Value: Int32); overload;
Public procedure ReadBE(out Value: Int64); overload;
Public procedure ReadBE(out Value: Single); overload;
Public procedure ReadBE(out Value: Double); overload;
Public procedure WriteLE(const Value: Word); overload;
Public procedure WriteLE(const Value: UInt32); overload;
Public procedure WriteLE(const Value: QWord); overload;
Public procedure WriteLE(const Value: SmallInt); overload;
Public procedure WriteLE(const Value: Int32); overload;
Public procedure WriteLE(const Value: Int64); overload;
Public procedure WriteLE(const Value: Single); overload;
Public procedure WriteLE(const Value: Double); overload;
Public procedure WriteBE(const Value: Word); overload;
Public procedure WriteBE(const Value: UInt32); overload;
Public procedure WriteBE(const Value: QWord); overload;
Public procedure WriteBE(const Value: SmallInt); overload;
Public procedure WriteBE(const Value: Int32); overload;
Public procedure WriteBE(const Value: Int64); overload;
Public procedure WriteBE(const Value: Single); overload;
Public procedure WriteBE(const Value: Double); overload;

Description

Methods

Public procedure ReadLE(out Value: Word); overload;

Reads a little endian value from the stream and converts it to native Byte order.

Public procedure ReadLE(out Value: UInt32); overload;

This item has no description.

Public procedure ReadLE(out Value: QWord); overload;

This item has no description.

Public procedure ReadLE(out Value: SmallInt); overload;

This item has no description.

Public procedure ReadLE(out Value: Int32); overload;

This item has no description.

Public procedure ReadLE(out Value: Int64); overload;

This item has no description.

Public procedure ReadLE(out Value: Single); overload;

This item has no description.

Public procedure ReadLE(out Value: Double); overload;

This item has no description.

Public procedure ReadLE(out Value: TVector2); overload;

This item has no description.

Public procedure ReadLE(out Value: TVector3); overload;

This item has no description.

Public procedure ReadLE(out Value: TVector4); overload;

This item has no description.

Public procedure ReadBE(out Value: Word); overload;

Reads a big endian value from the stream and converts it to native Byte order.

Public procedure ReadBE(out Value: UInt32); overload;

This item has no description.

Public procedure ReadBE(out Value: QWord); overload;

This item has no description.

Public procedure ReadBE(out Value: SmallInt); overload;

This item has no description.

Public procedure ReadBE(out Value: Int32); overload;

This item has no description.

Public procedure ReadBE(out Value: Int64); overload;

This item has no description.

Public procedure ReadBE(out Value: Single); overload;

This item has no description.

Public procedure ReadBE(out Value: Double); overload;

This item has no description.

Public procedure WriteLE(const Value: Word); overload;

Writes a value in native Byte order as little endian value to the stream.

Public procedure WriteLE(const Value: UInt32); overload;

This item has no description.

Public procedure WriteLE(const Value: QWord); overload;

This item has no description.

Public procedure WriteLE(const Value: SmallInt); overload;

This item has no description.

Public procedure WriteLE(const Value: Int32); overload;

This item has no description.

Public procedure WriteLE(const Value: Int64); overload;

This item has no description.

Public procedure WriteLE(const Value: Single); overload;

This item has no description.

Public procedure WriteLE(const Value: Double); overload;

This item has no description.

Public procedure WriteBE(const Value: Word); overload;

Writes a value in native Byte order as big endian value to the stream.

Public procedure WriteBE(const Value: UInt32); overload;

This item has no description.

Public procedure WriteBE(const Value: QWord); overload;

This item has no description.

Public procedure WriteBE(const Value: SmallInt); overload;

This item has no description.

Public procedure WriteBE(const Value: Int32); overload;

This item has no description.

Public procedure WriteBE(const Value: Int64); overload;

This item has no description.

Public procedure WriteBE(const Value: Single); overload;

This item has no description.

Public procedure WriteBE(const Value: Double); overload;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.