Jump to content
EugeneK

Using TBytes instead of string

Recommended Posts

Hi

 

Any chance of adding

TCustomWSocket.Send(const Data: TBytes)

and/or marking 

function TCustomWSocket.SendStr(const Str : UnicodeString) : Integer;

as deprecated to prevent inadvertent use of wrong encoding.

Share this post


Link to post

ICS does make increasing use of TBytes internally, so adding an overloaded Send would make sense, a few days.

 

You can always pass a code page to SendStr, that is another overload. 

 

Angus

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×