Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. largest size of a byte array

largest size of a byte array

Scheduled Pinned Locked Moved C#
questiondata-structuresarchitecture
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jimmy Zhang
    wrote on last edited by
    #1

    What is the laregest byte array one can possible allocate? byte[] ba = new byte[i]; can i be 64-bit? Is the answer different on a 32-bit architecture than on a 64-bit architecture?

    P 1 Reply Last reply
    0
    • J Jimmy Zhang

      What is the laregest byte array one can possible allocate? byte[] ba = new byte[i]; can i be 64-bit? Is the answer different on a 32-bit architecture than on a 64-bit architecture?

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Available memory. Yes. Dunno.

      D 1 Reply Last reply
      0
      • P PIEBALDconsult

        Available memory. Yes. Dunno.

        D Offline
        D Offline
        Derek Bartram
        wrote on last edited by
        #3

        PIEBALDconsult wrote:

        Dunno

        Yes, tried it.

        P 1 Reply Last reply
        0
        • D Derek Bartram

          PIEBALDconsult wrote:

          Dunno

          Yes, tried it.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          There's no substitute for trying.

          D 1 Reply Last reply
          0
          • P PIEBALDconsult

            There's no substitute for trying.

            D Offline
            D Offline
            Derek Bartram
            wrote on last edited by
            #5

            PIEBALDconsult wrote:

            There's no substitute for trying.

            Knowing perhaps?

            C 1 Reply Last reply
            0
            • D Derek Bartram

              PIEBALDconsult wrote:

              There's no substitute for trying.

              Knowing perhaps?

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              But as Richard Feynman was fond of saying, don't rely on authority. Perform the experiments yourself and see the evidence for yourself. So long as your knowledge came from your own efforty, your willingness to try, then great. Otherwise, how do you really know? The authority could be lying or simply mistaken.

              Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Mixins in C#3.0 My website | Blog

              P D J 3 Replies Last reply
              0
              • C Colin Angus Mackay

                But as Richard Feynman was fond of saying, don't rely on authority. Perform the experiments yourself and see the evidence for yourself. So long as your knowledge came from your own efforty, your willingness to try, then great. Otherwise, how do you really know? The authority could be lying or simply mistaken.

                Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Mixins in C#3.0 My website | Blog

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #7

                My point exactly. I'd also refer to Edison and his 10000 ways that don't work. As I say, "You learn more from your mistakes than from getting it right the first time."

                1 Reply Last reply
                0
                • C Colin Angus Mackay

                  But as Richard Feynman was fond of saying, don't rely on authority. Perform the experiments yourself and see the evidence for yourself. So long as your knowledge came from your own efforty, your willingness to try, then great. Otherwise, how do you really know? The authority could be lying or simply mistaken.

                  Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Mixins in C#3.0 My website | Blog

                  D Offline
                  D Offline
                  Derek Bartram
                  wrote on last edited by
                  #8

                  Colin Angus Mackay wrote:

                  or simply mistaken.

                  It has happened

                  1 Reply Last reply
                  0
                  • C Colin Angus Mackay

                    But as Richard Feynman was fond of saying, don't rely on authority. Perform the experiments yourself and see the evidence for yourself. So long as your knowledge came from your own efforty, your willingness to try, then great. Otherwise, how do you really know? The authority could be lying or simply mistaken.

                    Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Mixins in C#3.0 My website | Blog

                    J Offline
                    J Offline
                    Jimmy Zhang
                    wrote on last edited by
                    #9

                    it is just that my machine doesn't have more than 2 GB of RAM, so I relied on others who have huge memory space to test it out... :)

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups