This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Programming / Expression Structure  /

  • Raw[ h , " hexstring "] constructs a raw data object with head h, and with contents corresponding to the binary bit pattern represented by the string hexstring, interpreted as a hexadecimal number.
  • Raw should be used only under very special circumstances.
  • It is possible to crash Mathematica by creating a fundamental Mathematica data object with Raw, and specifying illegal internal data for it. If you create an object with head Real, but with internal data incompatible with Mathematica Real numbers, you may end up crashing your whole Mathematica session.
  • Raw encodes data so that two hexadecimal digits represent one byte. Identical hexstring may lead to different internal data on different computer systems.
  • You cannot necessarily transport raw arrays of bytes from one type of computer to another without encountering byte swap incompatibilities.
  • See the Mathematica book: Section A.1.4.
  • See also: Run.
  • Related package: Utilities`BinaryFiles`.