It is currently Tue Apr 13, 2021 6:07 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Dev-Object
PostPosted: Sat Nov 28, 2020 2:15 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 617
Location: Canada
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

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
 Post subject: Re: Dev-Object
PostPosted: Sun Mar 14, 2021 7:41 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 617
Location: Canada
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

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
 Post subject: Re: Dev-Object
PostPosted: Mon Mar 15, 2021 9:32 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 252
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
...


Top
 Profile  
Reply with quote  
 Post subject: Re: Dev-Object
PostPosted: Mon Mar 15, 2021 11:43 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 617
Location: Canada
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

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
 Post subject: Re: Dev-Object
PostPosted: Tue Mar 16, 2021 1:40 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 617
Location: Canada
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

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
 Post subject: Re: Dev-Object
PostPosted: Fri Mar 19, 2021 7:50 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 617
Location: Canada
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

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
 Post subject: Re: Dev-Object
PostPosted: Tue Mar 23, 2021 2:57 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 617
Location: Canada
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

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye