Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
byte
- Page 1
Re: byte vs char
Programming
Software Development
16 Years Ago
by Rashakil Fol
byte
is an unsigned 8-bit integer whose values range from …
byte and long conversion in VB
Programming
Software Development
18 Years Ago
by harish13
i have a array called arr() of type
byte
. one of my function returns an integer long value(val) 4 bytes. i want devide this value into bytes and assign to arr() that is arr(1)=first
byte
of val arr(2)=second
byte
of val arr(3)=third
byte
of val arr(4)=fourth
byte
of val thank u in advance
Byte Array SHA-1 Hash
Programming
Software Development
16 Years Ago
by ashkash
… perform a sha-1 hash on a
byte
array. The
byte
array needs to be hashed with all … So the following are some examples of the
byte
array that would need to be hashed using… 08 The hex string of each of the
byte
arrays would need to be hashed using a… need to generate all the combinations of the
byte
array and hash each one using a sha-…
haw to write byte range 0x00 to 0xFF
Programming
Software Development
15 Years Ago
by especta
byte
range is 0x00 to 0xFF haw to write to text file like this
byte
0x00 =
byte
0x01 =
byte
0x02 = ...... all to
byte
0xFF Thanks.
byte array print rounding values down
Programming
Software Development
10 Years Ago
by michael.james.90475
… of retransmissions: " + retransmissionCounter);
byte
[] statMessage = new
byte
[32]; statMessage[0]= (
byte
) throughput; statMessage[1]=(
byte
) fileSizeMB; statMessage[2]=(
byte
) transferTime; DatagramPacket statPacket = new DatagramPacket…
Re: byte array print rounding values down
Programming
Software Development
10 Years Ago
by JamesCherrill
… point values. When you assign a float value to a
byte
it's rounded down to the nearest integer value. You… is >127, becuase that's the largest value a
byte
can hold. Either way, the answer is to use more… than 1
byte
to send the value. You can use an nio ByteBuffer…
byte ptr usage (nasm assembly)
Programming
Software Development
16 Years Ago
by flash121
… a string char by char and i've heard a
byte
ptr is the way to do this, but i'm…: "comma or end of line expected" at the
byte
ptr line. [code] BITS 32 extern printf global main section…,4 ret fun: mov ebx,dword[esp+4] mov al,
byte
ptr[ebx] .. .. .. ret [/code] Any advice would be much appriciated…
Byte to string issue
Programming
Software Development
15 Years Ago
by Anon17
… it's working perfectly except for a few values. [code]
byte
[] b = {(
byte
)0x8D}; String s = new String(b); [/code] Instead of…
Re: Byte to Integer conversion
Programming
Software Development
14 Years Ago
by Narue
… either. In your case you need to build the value
byte
by
byte
, which initially suggests bitwise operations, but there's a… }, 0)); Console.WriteLine(BitConverter.ToInt16(new
byte
[] { 0x02, 0x00 }, 0)); Console.WriteLine(BitConverter.ToInt32(new
byte
[] { 0x73, 0x45, 0x69, 0xA }, 0)); } } } [/code…
Re: Byte stuffing (Computer Networks)
Programming
Computer Science
15 Years Ago
by Nick Evan
… does using these two bytes have over just using one
byte
such as 01111110? [/quote] Depending on what kind of data… in your data is a lot smaller then just 1
byte
. If we assume the standard ascii-set, and you send… 2 bytes then 1 in 127x127
byte
-pairs will be the same as your EOT-
byte
-pair. So now you only need…
Re: BYTE to STRING conversion
Programming
Software Development
12 Years Ago
by ravenous
This is slightly confusing. I assume that `sizeof(
BYTE
)` is 1, but the value `0x9100` …include <sstream> typedef unsigned char
BYTE
; int main() { // A test array of BYTEs
BYTE
a[10] = { 54, 23, … std::setfill( '0' ) << std::setw( 2 * sizeof(
BYTE
) ) << static_cast< unsigned >( a[ i ] );…
Byte Word
Programming
Software Development
17 Years Ago
by shriagni
how can i create the
byte
and word data types. Im using a header which requires word and
byte
data types for execution of data. where as my compiler dun accept those types. how can i implement them? thank you in advance. regards, Shrikrishna
Re: Byte Word
Programming
Software Development
17 Years Ago
by Ancient Dragon
If you are using ms-windows operating system you can include windows.h which already defined
BYTE
and WORD. If not then you can define them yourself like this [code] typedef unsigned char
BYTE
; typedef unsigned short WORD; [/code]
Re: Byte to string issue
Programming
Software Development
15 Years Ago
by nmaillet
This is an decoding problem. By passing a
byte
array into a String constructor, it does not consider the exact value, it uses the default character set of the system (probably UTF-8). Converting it to a character array should fix it.
when i try to store byte array which is 977kb into ms access database ......
Programming
Software Development
15 Years Ago
by coollife
byte
array size is 977kb when i try to store into … ms access database and when i store it into temporary
byte
array i am getting only 25 bytes. So where am…
byte vs char
Programming
Software Development
16 Years Ago
by serkan sendur
why would one choose using
byte
[] instead of char[] or vica versa
Byte Reversal
Programming
Software Development
15 Years Ago
by jralexander137
… trouble figuring out what exactly I'm missing in this
Byte
reversal method. For example is should take 0x01020304 and flip…
Re: Byte Reversal
Programming
Software Development
15 Years Ago
by Dave Sinkula
… trouble figuring out what exactly I'm missing in this
Byte
reversal method. For example is should take 0x01020304 and flip…
Re: Byte Reversal
Programming
Software Development
15 Years Ago
by codeguru_2009
At line 12 you are working on one
byte
, means interchanging last 2 nibbles. so after line 12 executes …
Byte to KILOBYTE conversion in c++
Programming
Software Development
15 Years Ago
by nirveshverma
HEy:) Buddies in early morning i want to calculate that exchange during download & you very well known that it is shown in
byte
so just i am g with c++ and play a game for writing this. thanks enjoy it. It's very easy and handy with simple logic.
Byte stuffing (Computer Networks)
Programming
Computer Science
15 Years Ago
by BestJewSinceJC
… does using these two bytes have over just using one
byte
such as 01111110? Thanks.
Byte to Integer conversion
Programming
Software Development
14 Years Ago
by chintan_1671
I have a
byte
array which looks something like 01 00 02 00 73 45 69 A5 So i have to read first 2 bytes and convert it into integer to get its value. Same for next 2 bytes and then next 4 bytes. Here the value for first 2 bytes (01 00) is 1, next 2 bytes (02 00) is 2. So could some one help me on this.
Re: Byte to Integer conversion
Programming
Software Development
14 Years Ago
by chintan_1671
Sorry I didn't understood your reply.
Byte
swapping and reading two bytes at a time and convert to integer are linked ? Please explain. [QUOTE=ddanbe;1442454]You need to swap bytes. You can find info on that here: [url]http://msdn.microsoft.com/en-us/library/aa288465(v=vs.71).aspx[/url][/QUOTE]
Re: Byte to Integer conversion
Programming
Software Development
14 Years Ago
by ddanbe
… in the file would be read as 4. Because a
byte
is 8 bits long, this is of course an int16…
Byte Array insertion using bcp
Programming
Databases
14 Years Ago
by kumaravelmanju
Need to insert
byte
array value in to a column using bcp bulk copy. Any way?
BYTE to STRING conversion
Programming
Software Development
12 Years Ago
by anukavi
Hi I have declared
BYTE
myKey[10]; and on executing the value stored in myKey …
Re: Basic Question about Byte Array
Programming
Software Development
12 Years Ago
by JamesCherrill
byte
[] array = "1".getBytes(); System.out.println (Arrays.toString(array)); Will give the output [49] ie an array of one element containing the decimal value 49 - which is the UniCode (and ASCII) code for the character '1'
Re: haw to write byte range 0x00 to 0xFF
Programming
Software Development
15 Years Ago
by fayyaz
…to text file like this
byte
0x00 =
byte
0x01 =
byte
0x02 = ...... all to
byte
0xFF Thanks.[/QUOTE] Hi… solotion of your problem [CODE] Var byt:
byte
; OutFile:TextFile; begin Assignfile(OutFile,'OutFile.txt');… For Byt:=0 to 255 do Writeln(OutFile,'
Byte
0X '+InttoHex(Byt,2)); CloseFile(OutFile); End…
Re: when i try to store byte array which is 977kb into ms access database ......
Programming
Software Development
15 Years Ago
by DdoubleD
…fs = new FileStream("encrypted.txt", FileMode.Open);
byte
[] buff = null; BinaryReader br = new BinaryReader(fs);…inserting part //below code is extracting part
byte
[] temp = new
byte
[200000000]; mycon.Open(); OleDbCommand cmd = new…
Re: haw to write byte range 0x00 to 0xFF
Programming
Software Development
15 Years Ago
by especta
… this is the solotion of your problem [CODE] Var byt:
byte
; OutFile:TextFile; begin Assignfile(OutFile,'OutFile.txt'); Rewrite(OutFile); For… Byt:=0 to 255 do Writeln(OutFile,'
Byte
0X '+InttoHex(Byt,2)); CloseFile(OutFile); End [/CODE] This Routin…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC