Hello,
This is probably a dumb question, but I just would like to understand
how the C# compiler computes the size of the managed structure or classes.
I'm working on this class:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
public class MyClass
{
public int index;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string
numeroCommande;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string
dateCommande;
}
For me, the size of this class is 29 octets (4 for the integer and 10+15
for the strings). Now, when I debug my source code, the compiler gives me
this information: Marshal.SizeOf(typeof(MyClass)) = 32... Why ? To make it
work, I had to modify the declaration of my class like this:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)]
public class ListeCommandesXComm
{
public int index;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string
numeroCommande;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string
dateCommande;
}
It works, but I'd prefer the compiler to compute the real size instead
of hard coding it... Does anyone knows why this happens and what I should do
to make it works correctly ?
Thanks ! 6 4973
Hi,
Take a look at the Pack parameter for the StructLayoutAttribute class.
It specifies the packing size: the alignment of the structure. By
default that should be 4 or 8. This would mean for 29 both cases would
return 32.
Try setting it to 1 if you require exactly the size your elements take up.
-Lenard
Laurent wrote: Hello,
This is probably a dumb question, but I just would like to understand how the C# compiler computes the size of the managed structure or classes. I'm working on this class:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] public class MyClass { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
For me, the size of this class is 29 octets (4 for the integer and 10+15 for the strings). Now, when I debug my source code, the compiler gives me this information: Marshal.SizeOf(typeof(MyClass)) = 32... Why ? To make it work, I had to modify the declaration of my class like this:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)] public class ListeCommandesXComm { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
It works, but I'd prefer the compiler to compute the real size instead of hard coding it... Does anyone knows why this happens and what I should do to make it works correctly ?
Thanks !
\o/
Great, thank you for your answer, Lenard !
"Lenard Gunda" <ar***********@freemail.hu> a écrit dans le message de news: e0**************@tk2msftngp13.phx.gbl... Hi,
Take a look at the Pack parameter for the StructLayoutAttribute class. It specifies the packing size: the alignment of the structure. By default that should be 4 or 8. This would mean for 29 both cases would return 32.
Try setting it to 1 if you require exactly the size your elements take up.
-Lenard
Laurent wrote: Hello,
This is probably a dumb question, but I just would like to understand how the C# compiler computes the size of the managed structure or classes. I'm working on this class:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] public class MyClass { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
For me, the size of this class is 29 octets (4 for the integer and 10+15 for the strings). Now, when I debug my source code, the compiler gives me this information: Marshal.SizeOf(typeof(MyClass)) = 32... Why ? To make it work, I had to modify the declaration of my class like this:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)] public class ListeCommandesXComm { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
It works, but I'd prefer the compiler to compute the real size instead of hard coding it... Does anyone knows why this happens and what I should do to make it works correctly ?
Thanks !
What exactly do you mean with:
"To make it work, I had to modify the declaration of my class like this:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)]
Your code works without the size attribute too!
The 32 comes from the fact that the interop marshaler reserves a buffer for
the structure that is the size of the structure padded to a multiple of the
size of the first element in the structure.
So in your case 4 +10+15 = 29 padded to a multiple of 4 which gives you 32.
This buffer size is only relevant for the marshaler, you shouldn't care
about it, what counts is that the structure is correctly marshaled to the
native side, that is, correctly aligned and padded.
Note that it's your responsability to balance the alignment of the
structures you pass to unmanaged code.
Willy.
"Laurent" <mo********@free.fr> wrote in message
news:u3**************@TK2MSFTNGP09.phx.gbl... Hello,
This is probably a dumb question, but I just would like to understand how the C# compiler computes the size of the managed structure or classes. I'm working on this class:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] public class MyClass { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
For me, the size of this class is 29 octets (4 for the integer and 10+15 for the strings). Now, when I debug my source code, the compiler gives me this information: Marshal.SizeOf(typeof(MyClass)) = 32... Why ? To make it work, I had to modify the declaration of my class like this:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)] public class ListeCommandesXComm { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
It works, but I'd prefer the compiler to compute the real size instead of hard coding it... Does anyone knows why this happens and what I should do to make it works correctly ?
Thanks !
Hi Willy,
Thanks for your answer. When I say that the code does not work without
the size attribute, it's because I use this class as a parameter for a
function embeded in a C++ DLL, which return me a array of my class (using
double pointers).
So to read this array, I use the pointer returned by the function and,
with the exact size of the array which must be the same as the array
returned by the DLL, I can put element by element the values (I'm not sure
to be undersandable enough, but thanks to Nicholas Paldino for this tip).
That's why I need to have 29, not 32 ! :-)
"Willy Denoyette [MVP]" <wi*************@telenet.be> a écrit dans le message
de news: %2****************@tk2msftngp13.phx.gbl... What exactly do you mean with: "To make it work, I had to modify the declaration of my class like this: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)]
Your code works without the size attribute too!
The 32 comes from the fact that the interop marshaler reserves a buffer for the structure that is the size of the structure padded to a multiple of the size of the first element in the structure. So in your case 4 +10+15 = 29 padded to a multiple of 4 which gives you 32. This buffer size is only relevant for the marshaler, you shouldn't care about it, what counts is that the structure is correctly marshaled to the native side, that is, correctly aligned and padded.
Note that it's your responsability to balance the alignment of the structures you pass to unmanaged code.
Willy.
"Laurent" <mo********@free.fr> wrote in message news:u3**************@TK2MSFTNGP09.phx.gbl... Hello,
This is probably a dumb question, but I just would like to understand how the C# compiler computes the size of the managed structure or classes. I'm working on this class:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] public class MyClass { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
For me, the size of this class is 29 octets (4 for the integer and 10+15 for the strings). Now, when I debug my source code, the compiler gives me this information: Marshal.SizeOf(typeof(MyClass)) = 32... Why ? To make it work, I had to modify the declaration of my class like this:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)] public class ListeCommandesXComm { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
It works, but I'd prefer the compiler to compute the real size instead of hard coding it... Does anyone knows why this happens and what I should do to make it works correctly ?
Thanks !
Lauren,
It shouldn't matter, there must be something wrong in the way you fill the
structure in your C code.
If you consider the buffer (array) filled with structures
"ListeCommandesXComm", like this:
|------------->|------------>|-------------->
struct1 struct2 struct3
where (in your case), each struct takes 29 bytes, this means that each odd
index (int) element would be mis-aligned on an odd address, something that
is taken care off by the CLR and the JIT on 32 bit versions of the OS, but
this would fail on some 64 bit systems!
I would suggest you inspect the C code and check how the array gets filled.
My guess is that:
- Your packing is set to 1 for the compiland, or....
- that structures are getting copied (using memcpy) to addresses in a buffer
calculated using the length of the structure as displacement value. This
leads to non-portable code and a lot of maintenance issues, especially when
you have to transport the buffer to non C code applications.
Take a look at the following sample (try to compile and run it if you like),
you'll see it works with the SizeOf value returned from the marshaler using
the default C++ alignment, but it will fail when the alignment is set to
anthing other than 4, 8, 16, 32.
//compile using MSFT C++: cl /EHsc /LD strmarsh.cpp
#include <windows.h>
// try this, align to byte (one byte multiples) and see the program fail
// __declspec(align(1)) struct str
// using default alignment
struct str
{
int index;
char num[10];
char dat[15];
};
extern "C" {
__declspec( dllexport ) void __stdcall PassStructArr(str *st[], int
*number);
}
str *st;
#define SIZEOFARRAY 5
void __stdcall PassStructArr(str *strarr[], int *number)
{
st = new str[SIZEOFARRAY];
for(int i = 0; i < SIZEOFARRAY; i++)
{
st[i].index = i;
strcpy( st[i].num, "123456789" );
strcpy( st[i].dat, "12345678901234" );
}
*strarr = st;
*number = SIZEOFARRAY;
}
using System;
using System.Runtime.InteropServices;
namespace Willys
{
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
public class ListeCommandesXComm
{
public int index;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)]
public string numeroCommande;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)]
public string dateCommande;
}
class Tester
{
[DllImport("strmarsh")]
extern static void PassStructArr(out IntPtr pt, out int number);
static void Main()
{
IntPtr lc = IntPtr.Zero;
int number;
PassStructArr(out lc, out number);
// Allocate the array.
ListeCommandesXComm[] outStructs = new ListeCommandesXComm[number];
// snippet taken from Nicholas reply on the other thread...
// Cycle through unmanaged memory, and marshal.
for (int index = 0; index < number; index++)
{
// Get the pointer of the location in memory.
IntPtr elementPointer = new IntPtr(lc.ToInt64() + (index *
Marshal.SizeOf(typeof(ListeCommandesXComm))));
// Now marshal that value.
outStructs[index] =
(ListeCommandesXComm)Marshal.PtrToStructure(elemen tPointer,
typeof(ListeCommandesXComm));
}
DumpArray(outStructs);
}
static void DumpArray(ListeCommandesXComm[] outStructs)
{
foreach(ListeCommandesXComm lc in outStructs)
Console.WriteLine("index {0}, numero {1}, date {2}", lc.index,
lc.numeroCommande, lc.dateCommande);
}
}
}
Willy.
"Laurent" <mo********@free.fr> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl... Hi Willy,
Thanks for your answer. When I say that the code does not work without the size attribute, it's because I use this class as a parameter for a function embeded in a C++ DLL, which return me a array of my class (using double pointers).
So to read this array, I use the pointer returned by the function and, with the exact size of the array which must be the same as the array returned by the DLL, I can put element by element the values (I'm not sure to be undersandable enough, but thanks to Nicholas Paldino for this tip).
That's why I need to have 29, not 32 ! :-) "Willy Denoyette [MVP]" <wi*************@telenet.be> a écrit dans le message de news: %2****************@tk2msftngp13.phx.gbl... What exactly do you mean with: "To make it work, I had to modify the declaration of my class like this: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)]
Your code works without the size attribute too!
The 32 comes from the fact that the interop marshaler reserves a buffer for the structure that is the size of the structure padded to a multiple of the size of the first element in the structure. So in your case 4 +10+15 = 29 padded to a multiple of 4 which gives you 32. This buffer size is only relevant for the marshaler, you shouldn't care about it, what counts is that the structure is correctly marshaled to the native side, that is, correctly aligned and padded.
Note that it's your responsability to balance the alignment of the structures you pass to unmanaged code.
Willy.
"Laurent" <mo********@free.fr> wrote in message news:u3**************@TK2MSFTNGP09.phx.gbl... Hello,
This is probably a dumb question, but I just would like to understand how the C# compiler computes the size of the managed structure or classes. I'm working on this class:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] public class MyClass { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
For me, the size of this class is 29 octets (4 for the integer and 10+15 for the strings). Now, when I debug my source code, the compiler gives me this information: Marshal.SizeOf(typeof(MyClass)) = 32... Why ? To make it work, I had to modify the declaration of my class like this:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)] public class ListeCommandesXComm { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
It works, but I'd prefer the compiler to compute the real size instead of hard coding it... Does anyone knows why this happens and what I should do to make it works correctly ?
Thanks !
Hi Willy,
I guess you're right, but unfortunately I don't have access to the DLL
source code, so I must do my best with what I have. The society which gave
me the DLL also gave me a C++ programm to test it, and I had to modify it to
make it work, adding the #pragma pack(1) declaration in the source code.
Prehaps the DLL has not been well coded (I think they used memcpy, as
you previously said), but I don't know if I can tell them something, and if
I can I don't even know what to tell them. Anyway, thank you for your help
and your explanations !
Laurent
"Willy Denoyette [MVP]" <wi*************@telenet.be> a écrit dans le message
de news: OG*************@TK2MSFTNGP15.phx.gbl... Lauren,
It shouldn't matter, there must be something wrong in the way you fill the structure in your C code.
If you consider the buffer (array) filled with structures "ListeCommandesXComm", like this:
|------------->|------------>|--------------> struct1 struct2 struct3
where (in your case), each struct takes 29 bytes, this means that each odd index (int) element would be mis-aligned on an odd address, something that is taken care off by the CLR and the JIT on 32 bit versions of the OS, but this would fail on some 64 bit systems! I would suggest you inspect the C code and check how the array gets filled. My guess is that: - Your packing is set to 1 for the compiland, or.... - that structures are getting copied (using memcpy) to addresses in a buffer calculated using the length of the structure as displacement value. This leads to non-portable code and a lot of maintenance issues, especially when you have to transport the buffer to non C code applications.
Take a look at the following sample (try to compile and run it if you like), you'll see it works with the SizeOf value returned from the marshaler using the default C++ alignment, but it will fail when the alignment is set to anthing other than 4, 8, 16, 32.
//compile using MSFT C++: cl /EHsc /LD strmarsh.cpp #include <windows.h>
// try this, align to byte (one byte multiples) and see the program fail // __declspec(align(1)) struct str // using default alignment struct str { int index; char num[10]; char dat[15]; };
extern "C" { __declspec( dllexport ) void __stdcall PassStructArr(str *st[], int *number);
}
str *st; #define SIZEOFARRAY 5 void __stdcall PassStructArr(str *strarr[], int *number) { st = new str[SIZEOFARRAY]; for(int i = 0; i < SIZEOFARRAY; i++) { st[i].index = i; strcpy( st[i].num, "123456789" ); strcpy( st[i].dat, "12345678901234" ); } *strarr = st; *number = SIZEOFARRAY; }
using System; using System.Runtime.InteropServices; namespace Willys { [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] public class ListeCommandesXComm { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
class Tester {
[DllImport("strmarsh")] extern static void PassStructArr(out IntPtr pt, out int number);
static void Main() { IntPtr lc = IntPtr.Zero; int number; PassStructArr(out lc, out number); // Allocate the array. ListeCommandesXComm[] outStructs = new ListeCommandesXComm[number]; // snippet taken from Nicholas reply on the other thread... // Cycle through unmanaged memory, and marshal. for (int index = 0; index < number; index++) { // Get the pointer of the location in memory. IntPtr elementPointer = new IntPtr(lc.ToInt64() + (index * Marshal.SizeOf(typeof(ListeCommandesXComm)))); // Now marshal that value. outStructs[index] = (ListeCommandesXComm)Marshal.PtrToStructure(elemen tPointer, typeof(ListeCommandesXComm)); } DumpArray(outStructs); } static void DumpArray(ListeCommandesXComm[] outStructs) { foreach(ListeCommandesXComm lc in outStructs) Console.WriteLine("index {0}, numero {1}, date {2}", lc.index, lc.numeroCommande, lc.dateCommande);
} } }
Willy.
"Laurent" <mo********@free.fr> wrote in message news:Ou**************@tk2msftngp13.phx.gbl... Hi Willy,
Thanks for your answer. When I say that the code does not work without the size attribute, it's because I use this class as a parameter for a function embeded in a C++ DLL, which return me a array of my class (using double pointers).
So to read this array, I use the pointer returned by the function and, with the exact size of the array which must be the same as the array returned by the DLL, I can put element by element the values (I'm not sure to be undersandable enough, but thanks to Nicholas Paldino for this tip).
That's why I need to have 29, not 32 ! :-) "Willy Denoyette [MVP]" <wi*************@telenet.be> a écrit dans le message de news: %2****************@tk2msftngp13.phx.gbl... What exactly do you mean with: "To make it work, I had to modify the declaration of my class like this: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)]
Your code works without the size attribute too!
The 32 comes from the fact that the interop marshaler reserves a buffer for the structure that is the size of the structure padded to a multiple of the size of the first element in the structure. So in your case 4 +10+15 = 29 padded to a multiple of 4 which gives you 32. This buffer size is only relevant for the marshaler, you shouldn't care about it, what counts is that the structure is correctly marshaled to the native side, that is, correctly aligned and padded.
Note that it's your responsability to balance the alignment of the structures you pass to unmanaged code.
Willy.
"Laurent" <mo********@free.fr> wrote in message news:u3**************@TK2MSFTNGP09.phx.gbl... Hello,
This is probably a dumb question, but I just would like to understand how the C# compiler computes the size of the managed structure or classes. I'm working on this class:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] public class MyClass { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
For me, the size of this class is 29 octets (4 for the integer and 10+15 for the strings). Now, when I debug my source code, the compiler gives me this information: Marshal.SizeOf(typeof(MyClass)) = 32... Why ? To make it work, I had to modify the declaration of my class like this:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Size=29)] public class ListeCommandesXComm { public int index; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] public string numeroCommande; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] public string dateCommande; }
It works, but I'd prefer the compiler to compute the real size instead of hard coding it... Does anyone knows why this happens and what I should do to make it works correctly ?
Thanks !
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John |
last post by:
Hi all,
Can a linked list be a member of a structure?
If so, when I add or remove an element from the linked list, the size
of the structure will change. Will it cause any problem?
Thanks a...
|
by: Amarendra |
last post by:
Folks,
This structure padding issue is bothering me now, could
not locate a satisfactory answer on clc, so here it goes...
I have a structure, given below:
typedef struct {
int flag;
char...
|
by: Sachin |
last post by:
typdef struct
{
int i;
char ch;
}str;
str str_var;
char x, y;
main()
{
//do nothing
|
by: ranjeet.gupta |
last post by:
Dear All !!
Before i qoute my querry, I will like to qoute my analysis and my
Knowledge
Struct a {
int raw;
char data;
};
|
by: marco_segurini |
last post by:
Hi,
From my VB program I call a C++ function that gets a structure pointer
like parameter. The structure has a field that contains the structure
length and other fields.
My problem is that...
|
by: junky_fellow |
last post by:
Can somebody please tell me about the structure alignment rules ?
What I found was that on my system (cygwin running on PC, size of
int=4 sizeof long=4, size of long long = 8) the cygwin compiler...
|
by: kris |
last post by:
Hi I am writing a small program where I need to obtain the actual size
of a structure.
The programm is as follows
struct abc
{
int j;
char k;
int i;
}*a;
|
by: =?Utf-8?B?QXlrdXQgRXJnaW4=?= |
last post by:
Hi Willy,
Thank you very much for your work.
C++ code doesnot make any serialization.
So at runtime C# code gives an serialization error at
"msg_file_s sa = (msg_file_s) bf.Deserialize(ms);"...
|
by: carles |
last post by:
Hi,
Here, sample code where a byte array is used to fill a particular structure:
fs = File.OpenRead(path); // FileStream
BITMAPFILEHEADER bfh = new BITMAPFILEHEADER();
b = new byte;
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |