pub unsafe fn place_into(hp: &mut Heap,
                           n_bytes: Word) -> Hopefully<*mut HOBinary>
  {
    let n_words = HOBinary::storage_size(n_bytes);
    let this = hp.heap_allocate(n_words, false)? as *mut HOBinary;

    ptr::write(this,
               HOBinary {
                 hobj: HeapObjHeader::new(n_words, &HOCLASS_BINARY),
                 n_bytes,
                 flavour: HOBinaryType::Heap,
               });

    Ok(this)
  }
/// Allocate space on heap for `n_bytes` and initialize the fields.
/// A pointer to binary is returned which manages heap placement automatically
/// (i.e. heapbin or procbin etc, are used automatically).
Allocate space on heap for `n_bytes` and initialize the fields.
A pointer to binary is returned which manages heap placement automatically
.
Allocate space on heap for ` n_bytes ` and initialize the fields . A pointer to binary is returned which manages heap placement automatically .
pub unsafe fn place_into(hp: &mut Heap,
                           n_bytes: Word) -> Hopefully<*mut HOBinary>
  {
    let n_words = HOBinary::storage_size(n_bytes);
    let this = hp.heap_allocate(n_words, false)? as *mut HOBinary;
    ptr::write(this,
               HOBinary {
                 hobj: HeapObjHeader::new(n_words, &HOCLASS_BINARY),
                 n_bytes,
                 flavour: HOBinaryType::Heap,
               });
    Ok(this)
  }
pub unsafe fn place_into ( hp : & mut Heap , n_bytes : Word ) -> Hopefully < * mut HOBinary > { let n_words = HOBinary :: storage_size ( n_bytes ) ; let this = hp . heap_allocate ( n_words , false ) ? as * mut HOBinary ; ptr :: write ( this , HOBinary { hobj : HeapObjHeader :: new ( n_words , & HOCLASS_BINARY ) , n_bytes , flavour : HOBinaryType :: Heap , } ) ; Ok ( this ) }
Allocate space on heap for `n_bytes` and initialize the fields.
Allocate space on heap for ` n_bytes ` and initialize the fields .
hp
&mut Heap
n_bytes
Word