Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7948313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:41:24+00:00 2026-06-04T01:41:24+00:00

I wanted to know how does writeInt treat a 32 bit unsigned or a

  • 0

I wanted to know how does writeInt treat a 32 bit unsigned or a signed integer passed to it?

It is easy to understand that how it works with a hexadecimal number. Util.Print will print the corresponding ASCII Characters.

0x41424344 will be broken down into 4 1 byte characters, A, B, C and D.

It seems like its different when an integer is passed to writeInt.

for instance,

var test: ByteArray = new ByteArray();
test.writeInt(0x41424344); // prints ABCD
test.writeInt(2590463591); // prints gVg
test.writeInt(1119885898);  // prints BÀJ

I am unclear how the Util.Print function treats the integers written into the ByteArray by writeInt.

The characters, gVg do not correspond to the integer number, 2590463591

According to the definition of writeInt here:

http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/flash/utils/ByteArray.html#writeInt%28%29

It states that it works with a 32 Bit Signed Integer.

If someone can elaborate over how it translates the integers to characters, it would be helpful.

EDIT: And how does it handle negative integers?

For instance,

test.writeInt(-11338743); // prints ÿRü 

So,

-11338743 = 0xFF52FC09

is that correct?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:41:26+00:00Added an answer on June 4, 2026 at 1:41 am

    If you interpret encoded bytes as ASCII

    dec          hex          ascii
    1094861636 = 0x41424344 = ABCD
    2590463591 = 0x9A675667 = gVg
    1119885898 = 0x42C01A4A = BÀJ
    

    Also, note that int vs unsigned int would implement different functions:

    var test:ByteArray = new ByteArray();
    test.writeInt(0x41424344);
    test.writeUnsignedInt(0x41424344);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to know how does behind the scene technology works when we see
I wanted to know that does MySQL store and update the total number of
Just wanted to know that does Visual web Developer 2010 [Free tool] contains MVC
I wanted to know that how much easy is to decompile python byte code.
I wanted to know how does Java/C# scale up compared to C++ with reference
I know jQuery does most when it comes to cross-browser issues. I just wanted
I wanted to know , How exactly does an Objective C object gets created.
I'm considering developing for the iPhone and i wanted to know; what codebase does
I am just getting started with C++ and wanted to know does it really
I wanted to know what does the # symbol mean? Why is it being

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.