by: Stacy Mader |
last post by:
Greetings all,
I have a VMS binary file with weather data. The record
on each line is 1xint(8) 12xint(2)
Using the perl unpack function, I can decode the
binary file like this:
<snip>
|
by: JustSomeGuy |
last post by:
I need to define a structure that is byte packed.
I was planning on using #pragma pack (1)
So when does the pragma pack end right after the first structure definition
or
at the end of the...
|
by: Giovanni Bajo |
last post by:
Hello,
with Visual Studio .NET 2003:
__declspec(align(1))
struct X {
unsigned int x : 3;
unsigned int y : 13;
};
|
by: Brian |
last post by:
Hi
PHP has a function called pack() (http://us2.php.net/pack). I need to
translate some code that uses this function to C#. What's the C#
equivalent of pack()?
Thanks, Brian
Example code...
|
by: taskswap |
last post by:
I'm converting an application that relies heavily on a binary network
protocol. Within this protocol are a lot of byte arrays of character
data, like:
public unsafe struct MsgAddEntry {...
|
by: p.lavarre |
last post by:
Can Python not express the idea of a three-byte int?
For instance, in the working example below, can we somehow collapse the
three calls of struct.pack into one?
08 12 34 56 80 00
I ask...
|
by: giddy |
last post by:
hi ,
I' know what the StructLayoutAttribute does. I've seen it being used.
But what does the Pack field do!?
This is what MSDN says:
Controls the alignment of data fields of a class or...
|
by: active |
last post by:
I have this and it seems to be working OK but now I wonder if the Pack value
shouldn't be 1.
What do you think?
<StructLayout(LayoutKind.Sequential, Pack:=4, CharSet:=CharSet.Auto)_
Public...
|
by: Piotrekk |
last post by:
Hi
My goal is to pack directory structure ( via code ) into file. Then i
need to have access to these directories packed in this file ( maybe
via some collection or something ). Is there a...
|
by: Steven Woody |
last post by:
In our project, one used the following struct
#pragma pack(1)
struct Foo {
uint8_t b1;
uint8_t b2;
uint8_t b3;
std::vector<uint8_t buf;
...
};
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|