Thanks! An adaptation of that will beat my recursive function.
I wonder if there is something like "MCDataCreateOfLength" among the built-ins. (I just made up the name.)
Search found 179 matches
- Sat Jul 20, 2019 7:23 pm
- Forum: LiveCode Builder
- Topic: Creating a large Data of a specified length
- Replies: 2
- Views: 5182
- Sat Jul 20, 2019 3:26 pm
- Forum: LiveCode Builder
- Topic: Creating a large Data of a specified length
- Replies: 2
- Views: 5182
Creating a large Data of a specified length
I have created a function in LCB that builds a Data filled with zeros based on a specified length. It works fine. (It uses put...after about 2.5log2n times.)
However, I'd like to improve speed. Is there a built-in method or trick or something I have missed?
However, I'd like to improve speed. Is there a built-in method or trick or something I have missed?
- Tue Apr 19, 2016 9:14 am
- Forum: LiveCode Builder
- Topic: Passing a buffer to a foreign handler
- Replies: 1
- Views: 3831
Re: Passing a buffer to a foreign handler
Ah, Peter TB Brett helped me out when I asked on the Use LiveCode list and somehow I didn't see the email. Yeah, one way to do this is to use Data and MCDataGetBytePtr().
- Tue Apr 19, 2016 3:30 am
- Forum: LiveCode Builder
- Topic: Foreign Handlers and Custom Types
- Replies: 35
- Views: 32321
Re: Foreign Handlers and Custom Types
I do wonder whether (for the time being at least), it might be worth adding some functions which allow you to dereference an offset from a pointer as all the native C storage types - that would enable you to build and decompose structs and C-style arrays right now. Basically, with enough glue-code ...
- Tue Apr 19, 2016 2:46 am
- Forum: LiveCode Builder
- Topic: Passing a buffer to a foreign handler
- Replies: 1
- Views: 3831
Passing a buffer to a foreign handler
This is part of the general problem of passing memory for sending or receiving arrays or structures to or from arbitrary functions in dynamic libraries created by others. I want to create some memory and pass a pointer to it to a foreign handler. One possibility is to create a value of type data and...
- Fri Aug 15, 2014 11:46 pm
- Forum: Feature Proposals
- Topic: Multicast support
- Replies: 5
- Views: 4384
Re: Multicast support
An alternative to the optional clause 'from group <ip address>' for accept is to allow an address:port pair where a port is used. This it might be like this: accept datagram connections on port 239.9.4.211:5000 with message "gotDatagram" One problem with that is that (as is) it looks the same in ope...
- Thu May 29, 2014 6:30 am
- Forum: Feature Proposals
- Topic: Networking layer feature requests
- Replies: 7
- Views: 4956
Re: Networking layer feature requests
Where is UDP broadcast missing?
- Tue May 27, 2014 10:36 pm
- Forum: Engine Contributors
- Topic: git resources
- Replies: 12
- Views: 13706
Re: git resources
When I go to github.com (redirected from github.org) I'm invited to download github and there is a pretty picture of a GUI screen. I don't know how complete that is. I appreciate the advice. I'm going to be working at this a little each day. Maybe I should make a small change to go through the motio...
- Tue May 27, 2014 7:23 pm
- Forum: Engine Contributors
- Topic: git resources
- Replies: 12
- Views: 13706
Re: git resources
That is probably it. I saw references to "pull request" and I was reading a request for permission to get pull or something. If I use the gitHub GUI, do I need git? I saw something called Tower for git, which might be handy when one is focusing on code and the git commands don't come to mind. Or is ...
- Tue May 27, 2014 12:32 pm
- Forum: Engine Contributors
- Topic: git resources
- Replies: 12
- Views: 13706
Re: git resources
I've been learning about git. Should I be focusing on github?
- Tue May 27, 2014 12:15 pm
- Forum: Engine Contributors
- Topic: Sockets: Multicast or Socket Options
- Replies: 22
- Views: 27318
Re: Sockets: Multicast or Socket Options
I've been reading about git. Maybe I should be learning about github.
- Tue May 27, 2014 11:58 am
- Forum: Engine Contributors
- Topic: Sockets: Multicast or Socket Options
- Replies: 22
- Views: 27318
Re: Sockets: Multicast or Socket Options
I'd like to do multicast, either directly as I described or in making the setting and getting of socket options visible, as described. If the latter, I'm interested in a property syntax, as described in the topic on properties for opened things, if the merge schedule is appropriate. For the property...
- Tue May 27, 2014 1:07 am
- Forum: Engine Contributors
- Topic: Tools
- Replies: 1
- Views: 4095
Tools
What tools do I need to play?
Xcode 5?
Visual Studio Express 2013?
Other?
Or is this detailed in a file I will get when I git?
Xcode 5?
Visual Studio Express 2013?
Other?
Or is this detailed in a file I will get when I git?
- Tue May 27, 2014 1:01 am
- Forum: Engine Contributors
- Topic: Internet Library Suggestion
- Replies: 4
- Views: 6222
Re: Internet Library Suggestion
I think URL for files is handled by the engine. The last I saw, PUT was not, but that might be new. I'm all for nonblocking. The blocking form allows for interesting lines like this: put processed( URL "http://alpha.com/test" ) into URL "http://beta.com/test" The nonblocking form, if implemented, mi...
- Sun May 25, 2014 9:55 pm
- Forum: Engine Contributors
- Topic: Language: properties of opened things
- Replies: 18
- Views: 18990
Re: Language: properties of opened things
...though we can get that from the lines of the openStuff and the screenRects. Not to discourage such cool features. Just throwing that out.