PureBasic Forum
http://forums.purebasic.com/english/

Dev-Object
http://forums.purebasic.com/english/viewtopic.php?f=27&t=74191
Page 2 of 2

Author:  StarBootics [ Sat Nov 28, 2020 2:15 am ]
Post subject:  Re: Dev-Object

Hello everyone,

A command to allocate memory for the Data type member has been added. The following operators reuse it :

    Copy()
    Read on file (Binary file)
    Open file (Binary file)
    Read file (Binary file)
    Read on file (encoded/encrypted file)
    Open file (encoded/encrypted file)
    Read file (encoded/encrypted file)

You can download the version 1.4.1 see the first post.

best regards
StarBootics

Author:  StarBootics [ Sun Mar 14, 2021 7:41 pm ]
Post subject:  Re: Dev-Object

Hello everyone,

Sorry to be so late and skip the upload of the version 1.4.2 but you can download the version 1.4.3 see the first post.

best regards
StarBootics

Author:  Cyllceaux [ Mon Mar 15, 2021 9:32 am ]
Post subject:  Re: Dev-Object

Hey there... I made some experiments.

Code:
...
parent_null.q
*data
*data2
*data3
datalen.q
...


It creates Getter und Setter like:
Code:
...
Get*data.i()
Get*data2.i()
Get*data3.i()
...
Set*data(*P_*data.)
Set*data2(*P_*data2.)
Set*data3(*P_*data3.)
...


The Free:
Code:
...
If *This\*data <> #Null
   *This\*data\Free()
EndIf
...


And Constructor:
Code:
...
If *P_*data <> #Null
   *This\*data = *P_*data
Else
   *This\*data = ::New()
EndIf
...

Author:  StarBootics [ Mon Mar 15, 2021 11:43 am ]
Post subject:  Re: Dev-Object

It's normal behaviors, for Data Type fields you have to add some information as comment like this :

Code:
parent_null.q
data1.i ; Data, datalen
data2.i ; Data, datalen
data3.i ; Data, datalen
datalen.q


See the help topic about : The Raw data type

Best regards
StarBootics

Author:  StarBootics [ Tue Mar 16, 2021 1:40 am ]
Post subject:  Re: Dev-Object

StarBootics wrote:
It's normal behaviors, for Data Type fields you have to add some information as comment like this :

Code:
parent_null.q
data1.i ; Data, datalen
data2.i ; Data, datalen
data3.i ; Data, datalen
datalen.q


See the help topic about : The Raw data type

Best regards
StarBootics


I forget to precise that you need to place fields like that :
Code:
parent_null.q
datalen.q
data1.i ; Data, datalen
data2.i ; Data, datalen
data3.i ; Data, datalen


It's important to place them like that if you want to save the data on binary/encoded/encrypted file.

Best regards
StarBootics

Author:  StarBootics [ Fri Mar 19, 2021 7:50 pm ]
Post subject:  Re: Dev-Object

Hello everyone,

The version 1.4.4 is available for download. In order to reduce function calls and improve speed, the Plus and Minus math operators has been modified. They are no longer calling the constructor. The Product and Divide operator has been also modified to be more like the Plus and Minus operators.

See the first post to download the latest source code.

Best regards
StarBootics

Author:  StarBootics [ Tue Mar 23, 2021 2:57 am ]
Post subject:  Re: Dev-Object

Hello everyone,

The version 1.4.5 is available for download. What's new in this version ?

Linked list operator Add Element Ex added
Linked list operator Insert Element added
Linked list operator Insert Element Ex added

See the first post to download the latest source code.

Best regards
StarBootics

Page 2 of 2 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/