a way to cast complete arrays (performant)?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sven Erik Matzen

    a way to cast complete arrays (performant)?

    Hi,

    Is there a way to quickly cast an array of "bytes" to an array of "signed
    bytes"?

    Sven


  • Mattias Sjögren

    #2
    Re: a way to cast complete arrays (performant)?

    Sven,
    [color=blue]
    >Is there a way to quickly cast an array of "bytes" to an array of "signed
    >bytes"?[/color]

    No a cast wont work, but you can do a copy with Buffer.BlockCop y



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org

    Please reply only to the newsgroup.

    Comment

    • Mattias Sjögren

      #3
      Re: a way to cast complete arrays (performant)?

      Sven,
      [color=blue]
      >Is there a way to quickly cast an array of "bytes" to an array of "signed
      >bytes"?[/color]

      No a cast wont work, but you can do a copy with Buffer.BlockCop y



      Mattias

      --
      Mattias Sjögren [MVP] mattias @ mvps.org

      Please reply only to the newsgroup.

      Comment

      Working...