This guid is (int,short,short,byte[8]) in little endian byte
order. So if you want to convert it to big endian, you'll need to
swap bytes in those int and two shorts.
```
ubyte[] guid=...
int* g1=cast(int*)guid.ptr;
*g1=bswap(*g1);
```
On Tuesday, 28 March 2023 at 05:26:08 UTC, Alexander Zhirov wrote:
When converting to HEX, I get the string
`121F4C264DED5E41A33F445B0A1CAE32`, in which some values are
reversed. I found ways on the Internet to transform the
permutation method into the desired result, but most likely it
will b
On Tuesday, 28 March 2023 at 08:15:03 UTC, Alexander Zhirov wrote:
So far it has been possible to convert like this
The idea was borrowed from
[here](https://elixirforum.com/t/using-active-directory-guid-with-ecto-uuid-field/15904).
On Tuesday, 28 March 2023 at 01:04:19 UTC, ryuukk_ wrote:
I've now waste an entire day trying to figure out what's wrong,
perhaps trusted D for my projects was a bad idea, i now look
like a fool
sorry to hear that, I haven't really been looking to much into
the debugging problems here yet. My
On Tuesday, 28 March 2023 at 04:22:24 UTC, Richard (Rikki) Andrew
Cattermole wrote:
On 28/03/2023 2:25 PM, ryuukk_ wrote:
On Tuesday, 28 March 2023 at 01:06:50 UTC, Richard (Rikki)
Andrew Cattermole wrote:
Have you tried installing mago?
https://github.com/rainers/mago
There are instructions
On Tuesday, 28 March 2023 at 05:05:58 UTC, Alexander Zhirov wrote:
`Error: cannot cast expression 'cast(ubyte*)arr' of type
'ubyte*' to 'ubyte[16]'`
Here is the working example:
```d
import std.stdio;
import std.uuid;
void main()
{
ubyte[] arr = [159, 199, 22, 163, 13, 74, 145, 73, 158, 112,
On Tuesday, 28 March 2023 at 05:05:58 UTC, Alexander Zhirov wrote:
On Tuesday, 28 March 2023 at 00:51:43 UTC, Steven Schveighoffer
wrote:
auto uuid = UUID(*cast(ubyte[16]*)youruuiddata.ptr);
```d
ubyte[] arr =
cast(ubyte[])value.attributes["objectGUID"][0].dup;
writeln(UUID(cast(ubyte[16])ar
On Tuesday, 28 March 2023 at 04:22:24 UTC, Richard (Rikki) Andrew
Cattermole wrote:
On 28/03/2023 2:25 PM, ryuukk_ wrote:
On Tuesday, 28 March 2023 at 01:06:50 UTC, Richard (Rikki)
Andrew Cattermole wrote:
Have you tried installing mago?
https://github.com/rainers/mago
There are instructions
On Tuesday, 28 March 2023 at 11:07:02 UTC, ryuukk_ wrote:
On Tuesday, 28 March 2023 at 04:22:24 UTC, Richard (Rikki)
Andrew Cattermole wrote:
On 28/03/2023 2:25 PM, ryuukk_ wrote:
On Tuesday, 28 March 2023 at 01:06:50 UTC, Richard (Rikki)
Andrew Cattermole wrote:
Have you tried installing mago
I opened an issue on microsoft's github, let's see what they have
to say: https://github.com/microsoft/vscode-cpptools/issues/10751
This guid is (int,short,short,byte[8]) in little endian byte
order. So if you want to convert it to big endian, you'll need to
swap bytes in those int and two shorts.
```
ubyte[] guid=...
int* g1=cast(int*)guid.ptr;
*g1=bswap(*g1);
```
On 3/28/23 1:05 AM, Alexander Zhirov wrote:
On Tuesday, 28 March 2023 at 00:51:43 UTC, Steven Schveighoffer wrote:
`auto uuid = UUID(*cast(ubyte[16]*)youruuiddata.ptr);` (added quotes here)
```d
ubyte[] arr = cast(ubyte[])value.attributes["objectGUID"][0].dup;
writeln(UUID(cast(ubyte[16])arr.p
On 3/28/23 6:36 AM, WebFreak001 wrote:
the formatting messed up here. Try this code:
```d
auto uuid = UUID(
(cast(const(ubyte)[]) value.attributes["objectGUID"][0])
[0 .. 16]
);
```
Nice, I didn't think this would work actually!
-Steve
C program:
```C
int notice_me_global = -1;
void main()
{
notice_me_global = -5;
}
```
``cl app_c.c /DEBUG /Zi /EHsc /std:c11 /link /DEBUG
/out:app_c.exe``
``llvm-pdbutil.exe dump --globals app_c.pdb > dump_c``
```
688476 | S_GDATA32 [size = 32] `notice_me_global`
type = 0x
On Tuesday, 28 March 2023 at 13:18:59 UTC, Kagamin wrote:
This guid is (int,short,short,byte[8]) in little endian byte
order. So if you want to convert it to big endian, you'll need
to swap bytes in those int and two shorts.
```
ubyte[] guid=...
int* g1=cast(int*)guid.ptr;
*g1=bswap(*g1);
```
Ready to test folder:
https://github.com/microsoft/vscode-cpptools/issues/10751#issuecomment-1486948783
Contains simple source to reproduce the issue + build script
Also contains binaries + dump in case you just want to see the
data
Hopefully we can figure that out
On Tuesday, 28 March 2023 at 14:02:39 UTC, ryuukk_ wrote:
Ready to test folder:
https://github.com/microsoft/vscode-cpptools/issues/10751#issuecomment-1486948783
Contains simple source to reproduce the issue + build script
Also contains binaries + dump in case you just want to see the
data
Great! Thank you!
On Monday, 27 March 2023 at 00:06:36 UTC, Inkrementator wrote:
I'm surprised this worked, according to `man ld`, the -L flag
takes a dir as input, not a full filepath. Can you please post
your full dub config? I'm intrigued.
Hello again and thank you very much. I got it now, I got OpenGL,
ncu
I added this line to my SDLang formatted dub build file:
```
dependency "libx11" version="0.0.1" platform="posix"
```
Yet it's included even on Windows, even if I change it to "linux".
Since there's a fatal bug in the library that disallows it to be
built, I'll be leaving it out for now, and i
On Tuesday, 28 March 2023 at 21:10:08 UTC, solidstate1991 wrote:
I added this line to my SDLang formatted dub build file:
```
dependency "libx11" version="0.0.1" platform="posix"
```
Yet it's included even on Windows, even if I change it to
"linux".
Since there's a fatal bug in the library t
On linux everything works properly out of the box, i tested with
gdb and i can inspect globals
More info + linux dump on my comment:
https://github.com/microsoft/vscode-cpptools/issues/10751#issuecomment-1487694435
So it's a problem either with msvc, or the way dmd/ldc write
information for
22 matches
Mail list logo