-
Take the following example:
```python
#!/usr/bin/env python3
from amaranth import *
from amaranth.lib.enum import Enum
from amaranth.lib import data
from amaranth.back.rtlil import convert
…
-
Currently with `[StructLayout]` we can define both the size (via `Size` field) and the field packing (via `Pack` field) . Unfortunately, it doesn't cover the case in C++ where you can have an alignmen…
-
It should be possible to use a fields-only Java class to hold a structure value, like this:
```java
public class IoVec {
public MemorySegment base;
@as(size_t) public long length;
}
…
-
https://github.com/dotnet/corefx/pull/35557#discussion_r259773232
If we are excluding this attribute, we should excluded `FieldOffsetAttribute` as well.
https://github.com/dotnet/corefx/blob/26b93…
-
This issue was discovered in Magicphysx. Here is the original Rust code and the currently generated C# code, it does not ensure the consistency of the struct's memory layout.
```rust
#[derive(Clone,…
-
This is a small feature request, by default struct are mapped with :
[StructLayout(LayoutKind.Sequential)]
It would be nice to have an xml attribute to allow like :
map struct l…
mrvux updated
6 years ago
-
As suggested by @tannergooding in https://github.com/dotnet/csharplang/pull/206#discussion_r107746622 the `[StructLayout(LayoutKind.Auto)]` on `DateTime` is not necessary and might prevent the wider a…
-
As suggested by @tannergooding in dotnet/csharplang#206 (comment) the [StructLayout(LayoutKind.Auto)] on `DateTimeOffset` is not necessary and might prevent the wider adoption of the [Initial blittabl…
-
I was trying to install ver on my Ubuntu 12.04, but installation failed on ffi-tk package. I got the same error message with gem versions 1.9.1 and 2.0.0.
Is there some way to get around this error?…
ghost updated
11 years ago
-
**Version Used**: main
From [SharpLab](https://sharplab.io/#v2:EYLgtghglgdgPgAQEwEYCwAoTBlADhGAHlgBcA+AAgGd8YKBeCgbQBMBTAMwgFcAbEgDQV2XPoOGce/ALoBuIA==):
```cs
[StructLayout(LayoutKind.Auto)]
…
jnm2 updated
2 months ago