ATerm++

PrevUpHomeNext

Class aterm_blob

genspect::aterm_blob —

Synopsis

class aterm_blob : public genspect::aterm {
public:
  // construct/copy/destruct
  aterm_blob(ATermBlob);
  aterm_blob(unsigned int, void *);

  // public member functions
  void * data();
  unsigned int size() const;
};

Description

aterm_blob construct/copy/destruct

  1. aterm_blob(ATermBlob t);
  2. aterm_blob(unsigned int size, void * data);

    Build a Binary Large OBject given size (in bytes) and data. This function can be used to create an aterm of type blob, holding the data pointed to by data. No copy of this data area is made, so the user should allocate this himself. Note: due to the internal representation of a blob, size cannot exceed 224 in the current implementation. This limits the size of the data area to 16 Mb.

aterm_blob public member functions

  1. void * data();

    Get the data section of the blob.

  2. unsigned int size() const;

    Get the size (in bytes) of the blob.

Copyright © 2004 Wieger Wesselink

PrevUpHomeNext