X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=HLT%2FBASE%2FAliHLTDataBuffer.h;h=672e6e643298db0f19ee2073128f17689cada18d;hp=c766d3ae94700ae813bbeb6f4b3d8715fb966e1a;hb=c0a2bfc238f7fa765a247c37ca9efd5a7892a85a;hpb=c615db53222894be9d1656fc7b574c7816f0834c diff --git a/HLT/BASE/AliHLTDataBuffer.h b/HLT/BASE/AliHLTDataBuffer.h index c766d3ae947..672e6e64329 100644 --- a/HLT/BASE/AliHLTDataBuffer.h +++ b/HLT/BASE/AliHLTDataBuffer.h @@ -260,11 +260,21 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging */ int CheckSize(AliHLTUInt32_t size) const; + /** + * Get used size of the buffer + */ + AliHLTUInt32_t GetUsedSize() const {return fSize;} + /** * Get total size of the buffer */ AliHLTUInt32_t GetTotalSize() const {return fTotalSize;} + /** + * Get pointer of data buffer + */ + AliHLTUInt8_t* GetPointer() const {return fPtr;} + /** * Write check pattern */ @@ -290,8 +300,6 @@ class AliHLTDataBuffer : public TObject, public AliHLTLogging operator void*() const {return fPtr;} operator AliHLTUInt8_t*() const {return fPtr;} - operator AliHLTUInt32_t() const {return fSize;} - private: /** copy constructor prohibited */ AliHLTRawBuffer(const AliHLTRawBuffer&);