Hi All,
Anyone know how to find the pointer to VS_VERSION_INFO in
a Windows .exe file?
Supposedly, this link tells you but ..
https://docs.microsoft.com/en-us/windows/desktop/debug/pe-format#section-table-section-headers
Many thanks,
-T
Hi All,
What is with the starting ending Nils? There are only four
elements, why now six?
And how to I correct this?
$ p6 'my Str $x="abcd";
for split( "",@$x ).kv -> $i,$j {
say "Index <$i> = <$j> = ord <" ~ ord($j) ~ ">";}'
Use of Nil in string context
in block at -e line 1
On Sun, Feb 3, 2019 at 9:36 PM ToddAndMargo via perl6-users
mailto:perl6-us...@perl.org>> wrote:
Hi All,
If I have a variable of type Buf which 1000 bytes in it
and I find the five bytes I want, is it faster, slower,
or no difference in speed to overwrite the same
On 2/5/19 8:26 AM, Curt Tilmes wrote:
If you have glibc (probably yes for Linux or Mac, probably no for
Windows), you can call memmem():
use NativeCall;
sub memmem(Blob $haystack, size_t $haystacklen,
Blob $needle, size_t $needlelen --> Pointer) is native {}
sub
On 2/5/19 7:55 AM, Brad Gilbert wrote:
`index` is an NQP op, which means in this case that it is written in C
(assuming you are using MoarVM)
https://github.com/MoarVM/MoarVM/blob/ddde09508310a5f60c63474db8f9682bc922700b/src/strings/ops.c#L557-L656
The code I gave for finding a Buf inside of
This came up yesterday and I wanted to capture it:
I've been sitting on the name just in case (I grabbed it when it briefly
seemed like we needed an "in-between" place for non-core, non-ecosystem
stuff like editor-support packages).
Right now, https://github.com/perl6-contrib is just sitting
There are modules to time two pieces of code and show the difference
https://github.com/perl6-community-modules/perl6-Benchy
https://github.com/tony-o/perl6-bench
You can write up the two versions you're thinking of, feed them to the
benchmark module, and show us what you find!
-y
On Sun, Feb
If you have glibc (probably yes for Linux or Mac, probably no for Windows),
you can call memmem():
use NativeCall;
sub memmem(Blob $haystack, size_t $haystacklen,
Blob $needle, size_t $needlelen --> Pointer) is native {}
sub buf-index(Blob $buffer, Blob $needle) {
`index` is an NQP op, which means in this case that it is written in C
(assuming you are using MoarVM)
https://github.com/MoarVM/MoarVM/blob/ddde09508310a5f60c63474db8f9682bc922700b/src/strings/ops.c#L557-L656
The code I gave for finding a Buf inside of another one was quickly
made in a way to