Skip to content

Commit efe343c

Browse files
committed
Struct layout.
1 parent e37eeba commit efe343c

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Common/ArrayBound.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
//$Authors = Carlos Guzman Alvarez, Jiri Cincura (jiri@cincura.net)
1717

1818
using System;
19+
using System.Runtime.InteropServices;
1920

2021
namespace FirebirdSql.Data.Common
2122
{
23+
[StructLayout(LayoutKind.Auto)]
2224
internal struct ArrayBound
2325
{
2426
public int LowerBound { get; set; }

Provider/src/FirebirdSql.Data.FirebirdClient/Common/ArrayDesc.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
namespace FirebirdSql.Data.Common
2222
{
23+
[StructLayout(LayoutKind.Auto)]
2324
internal struct ArrayDesc
2425
{
2526
public byte DataType { get; set; }

Provider/src/FirebirdSql.Data.FirebirdClient/Types/FbDecFloat.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
using System;
1919
using System.Globalization;
2020
using System.Numerics;
21+
using System.Runtime.InteropServices;
2122
using FirebirdSql.Data.Common;
2223

2324
namespace FirebirdSql.Data.Types
2425
{
26+
[StructLayout(LayoutKind.Auto)]
2527
public readonly struct FbDecFloat : IEquatable<FbDecFloat>
2628
{
2729
internal DecimalType Type { get; }

Provider/src/FirebirdSql.Data.FirebirdClient/Types/FbZonedDateTime.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
//$Authors = Jiri Cincura (jiri@cincura.net)
1717

1818
using System;
19+
using System.Runtime.InteropServices;
1920

2021
namespace FirebirdSql.Data.Types
2122
{
23+
[StructLayout(LayoutKind.Auto)]
2224
public readonly struct FbZonedDateTime : IEquatable<FbZonedDateTime>
2325
{
2426
public DateTime DateTime { get; }

Provider/src/FirebirdSql.Data.FirebirdClient/Types/FbZonedTime.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
//$Authors = Jiri Cincura (jiri@cincura.net)
1717

1818
using System;
19+
using System.Runtime.InteropServices;
1920

2021
namespace FirebirdSql.Data.Types
2122
{
23+
[StructLayout(LayoutKind.Auto)]
2224
public readonly struct FbZonedTime : IEquatable<FbZonedTime>
2325
{
2426
public TimeSpan Time { get; }

0 commit comments

Comments
 (0)