title: Inverse of numpy.recarray.tobytes
body: <p>What's the inverse to <a href="https://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.recarray.tobytes.html" rel="nofollow noreferrer"><code>numpy.recarray.tobytes</code></a>?</p>
  
  <pre><code>&gt;&gt;&gt; import numpy as np
  &gt;&gt;&gt; A = np.array([(28483,27759)],dtype=[('x','&lt;u2'),('y','&lt;u2')])
  &gt;&gt;&gt; A.tobytes()
  'Cool'
  </code></pre>
  
  <p>Here <code>A</code> is a 4-byte structured array, and <code>tobytes</code> lets me serialize it in binary form. How can I take a binary string of the proper size and deserialize it given a <code>dtype</code> object?</p>