Unit bsUtils

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Utility Library

Overview

Functions and Procedures

function BytesToString(const Value: TBytes):BSString;
function BytesToUTF8String(const Value:TBytes):BSString;
function StringToBytes(const Value: BSString):TBytes;
function UTF8StringToBytes(const Value:BSString ):TBytes;
function DecodeBase64String(const Input: BSString): BSString;
function EncodeBase64String(const Input: BSString): BSString;
procedure DecodeBase64Stream(Input, Output: TStream);
procedure EncodeBase64Stream(Input, Output: TStream);
function EncodeFileToBase64String(const AFileName: BSString): BSString;
function StartsWith(Substr:String; AStr: String):Boolean;
function LocalMachineEndian : TbsEndian;
function SwapWord(Value: Word): Word; overload;
procedure SwapWord(P: PBSWordArray; Count: LongInt); overload;
function SwapLongInt(const Value: LongInt): LongInt; overload;
function SwapLongWord(const Value: LongWord): LongWord; overload;
procedure SwapLongWord(P: PLongWord; Count: LongInt); overload;
function SwapSingle(const Value: Single): Single; overload;
function SwapDouble(const Value: Double): Double; overload;
procedure SwapBytes(AUnitSize: Byte; ABytes: PByte; ACount:Integer);
function FormatSettings_EN: TFormatSettings;

Description

Functions and Procedures

function BytesToString(const Value: TBytes):BSString;
 
function BytesToUTF8String(const Value:TBytes):BSString;
 
function StringToBytes(const Value: BSString):TBytes;
 
function UTF8StringToBytes(const Value:BSString ):TBytes;
 
function DecodeBase64String(const Input: BSString): BSString;
 
function EncodeBase64String(const Input: BSString): BSString;
 
procedure DecodeBase64Stream(Input, Output: TStream);
 
procedure EncodeBase64Stream(Input, Output: TStream);
 
function EncodeFileToBase64String(const AFileName: BSString): BSString;
 
function StartsWith(Substr:String; AStr: String):Boolean;
 
function LocalMachineEndian : TbsEndian;

Endian

function SwapWord(Value: Word): Word; overload;
 
procedure SwapWord(P: PBSWordArray; Count: LongInt); overload;
 
function SwapLongInt(const Value: LongInt): LongInt; overload;
 
function SwapLongWord(const Value: LongWord): LongWord; overload;
 
procedure SwapLongWord(P: PLongWord; Count: LongInt); overload;
 
function SwapSingle(const Value: Single): Single; overload;
 
function SwapDouble(const Value: Double): Double; overload;
 
procedure SwapBytes(AUnitSize: Byte; ABytes: PByte; ACount:Integer);
 
function FormatSettings_EN: TFormatSettings;
 

Generated by PasDoc 0.14.0.