TBuf8 Class Reference

#include <e32des8.h>

Link against: eposprvtyp.lib

class TBuf8 : public TBufBase8

Inherits from

Protected Attributes
TUint8 iBuf
Public Member Functions
TBuf8()
TBuf8(TInt)
TBuf8(const TUint8 *)
TBuf8(const TDesC8 &)
TBuf8< S > &operator=(const TUint8 *)
TBuf8< S > &operator=(const TDesC8 &)
TBuf8< S > &operator=(const TBuf8< S > &)
Inherited Attributes
TDes8::__DECLARE_TEST
TDes8::iMaxLength
Inherited Functions
TBufBase8::TBufBase8(TInt)
TBufBase8::TBufBase8(TInt,TInt)
TBufBase8::TBufBase8(const TDesC8 &,TInt)
TBufBase8::TBufBase8(const TUint8 *,TInt)
TDes8::Append(TChar)
TDes8::Append(const TDesC16 &)
TDes8::Append(const TDesC8 &)
TDes8::Append(const TUint8 *,TInt)
TDes8::AppendFill(TChar,TInt)
TDes8::AppendFormat(TRefByValue< const TDesC8 >,...)
TDes8::AppendFormat(TRefByValue< const TDesC8 >,TDes8Overflow *,...)
TDes8::AppendFormatList(const TDesC8 &,VA_LIST,TDes8Overflow *)
TDes8::AppendJustify(const TDesC8 &,TInt,TAlign,TChar)
TDes8::AppendJustify(const TDesC8 &,TInt,TInt,TAlign,TChar)
TDes8::AppendJustify(const TUint8 *,TInt,TAlign,TChar)
TDes8::AppendJustify(const TUint8 *,TInt,TInt,TAlign,TChar)
TDes8::AppendNum(TInt64)
TDes8::AppendNum(TReal,const TRealFormat &)
TDes8::AppendNum(TUint64,TRadix)
TDes8::AppendNumFixedWidth(TUint,TRadix,TInt)
TDes8::AppendNumFixedWidthUC(TUint,TRadix,TInt)
TDes8::AppendNumUC(TUint64,TRadix)
TDes8::Capitalize()
TDes8::Collapse()
TDes8::Collate()
TDes8::Copy(const TDesC16 &)
TDes8::Copy(const TDesC8 &)
TDes8::Copy(const TUint8 *)
TDes8::Copy(const TUint8 *,TInt)
TDes8::CopyC(const TDesC8 &)
TDes8::CopyCP(const TDesC8 &)
TDes8::CopyF(const TDesC8 &)
TDes8::CopyLC(const TDesC8 &)
TDes8::CopyUC(const TDesC8 &)
TDes8::Delete(TInt,TInt)
TDes8::DoAppendNum(TUint64,TRadix,TUint,TInt)
TDes8::DoPadAppendNum(TInt,TInt,const TUint8 *)
TDes8::Expand()
TDes8::Fill(TChar)
TDes8::Fill(TChar,TInt)
TDes8::FillZ()
TDes8::FillZ(TInt)
TDes8::Fold()
TDes8::Format(TRefByValue< const TDesC8 >,...)
TDes8::FormatList(const TDesC8 &,VA_LIST)
TDes8::Insert(TInt,const TDesC8 &)
TDes8::Justify(const TDesC8 &,TInt,TAlign,TChar)
TDes8::LeftTPtr(TInt)const
TDes8::LowerCase()
TDes8::MaxLength()const
TDes8::MaxSize()const
TDes8::MidTPtr(TInt)const
TDes8::MidTPtr(TInt,TInt)const
TDes8::Num(TInt64)
TDes8::Num(TReal,const TRealFormat &)
TDes8::Num(TUint64,TRadix)
TDes8::NumFixedWidth(TUint,TRadix,TInt)
TDes8::NumFixedWidthUC(TUint,TRadix,TInt)
TDes8::NumUC(TUint64,TRadix)
TDes8::PtrZ()
TDes8::Repeat(const TDesC8 &)
TDes8::Repeat(const TUint8 *,TInt)
TDes8::Replace(TInt,TInt,const TDesC8 &)
TDes8::RightTPtr(TInt)const
TDes8::SetLength(TInt)
TDes8::SetMax()
TDes8::Swap(TDes8 &)
TDes8::TDes8()
TDes8::TDes8(TInt,TInt,TInt)
TDes8::Trim()
TDes8::TrimAll()
TDes8::TrimLeft()
TDes8::TrimRight()
TDes8::UpperCase()
TDes8::WPtr()const
TDes8::Zero()
TDes8::ZeroTerminate()
TDes8::operator+=(const TDesC8 &)
TDes8::operator=(const TDes8 &)
TDes8::operator[](TInt)
TDes8::operator[](TInt)const
TDesC8::Alloc()const
TDesC8::AllocL()const
TDesC8::AllocLC()const
TDesC8::AtC(TInt)const
TDesC8::Compare(const TDesC8 &)const
TDesC8::CompareC(const TDesC8 &)const
TDesC8::CompareF(const TDesC8 &)const
TDesC8::DoSetLength(TInt)
TDesC8::Find(const TDesC8 &)const
TDesC8::Find(const TUint8 *,TInt)const
TDesC8::FindC(const TDesC8 &)const
TDesC8::FindC(const TUint8 *,TInt)const
TDesC8::FindF(const TDesC8 &)const
TDesC8::FindF(const TUint8 *,TInt)const
TDesC8::Left(TInt)const
TDesC8::Length()const
TDesC8::Locate(TChar)const
TDesC8::LocateF(TChar)const
TDesC8::LocateReverse(TChar)const
TDesC8::LocateReverseF(TChar)const
TDesC8::Match(const TDesC8 &)const
TDesC8::MatchC(const TDesC8 &)const
TDesC8::MatchF(const TDesC8 &)const
TDesC8::Mid(TInt)const
TDesC8::Mid(TInt,TInt)const
TDesC8::Ptr()const
TDesC8::Right(TInt)const
TDesC8::Size()const
TDesC8::TDesC8()
TDesC8::TDesC8(TInt,TInt)
TDesC8::Type()const
TDesC8::operator!=(const TDesC8 &)const
TDesC8::operator<(const TDesC8 &)const
TDesC8::operator<=(const TDesC8 &)const
TDesC8::operator==(const TDesC8 &)const
TDesC8::operator>(const TDesC8 &)const
TDesC8::operator>=(const TDesC8 &)const

Detailed Description

A descriptor class which provides a buffer of fixed length for containing, accessing and manipulating TUint8 data.

The class is intended for instantiation. The 8-bit data that the descriptor represents is part of the descriptor object itself.

The class is templated, based on an integer value which determines the size of the data area which is created as part of the buffer descriptor object; this is also the maximum length of the descriptor.

The data is intended to be both accessed and modified. The base classes provide the functions through which the data is accessed.

See also: TBuf TDesC8 TDes8 TPtr8

Member Attribute Documentation

iBuf

TUint8 iBuf[protected]

Constructor & Destructor Documentation

TBuf8 ( )

TBuf8()[inline]

Constructs an empty 8-bit modifiable buffer descriptor.

It contains no data.

The integer template parameter determines the size of the data area that is created as part of the object, and defines the descriptor's maximum length.

TBuf8 ( TInt )

TBuf8(TIntaLength)[inline, explicit]

Constructs an empty 8-bit modifiable buffer descriptor and sets the its length to the specified value.

No data is assigned to the descriptor.

The integer template parameter determines the size of the data area that is created as part of the object, and defines the descriptor's maximum length.

panic
USER 20, if aLength is negative or is greater than the value of the integer template parameter.
ParameterDescription
aLengthThe length of this modifiable buffer descriptor.

TBuf8 ( const TUint8 * )

TBuf8(const TUint8 *aString)[inline]

Constructs the 8-bit modifiable buffer descriptor from a zero terminated string.

The integer template parameter determines the size of the data area that is created as part of the object, and defines the descriptor's maximum length.

The string, excluding the zero terminator, is copied into this buffer descriptor's data area. The length of this buffer descriptor is set to the length of the string, excluding the zero terminator.

panic
USER 23, if the length of the string, excluding the zero terminator, is greater than the value of the integer template parameter.
ParameterDescription
aStringA pointer to a zero terminated string.

TBuf8 ( const TDesC8 & )

TBuf8(const TDesC8 &aDes)[inline]

Constructs the 8-bit modifiable buffer descriptor from any existing 8-bit descriptor.

The integer template parameter determines the size of the data area created as part of this object and defines the descriptor's maximum length.

Data is copied from the source descriptor into this modifiable buffer descriptor and the length of this modifiable buffer descriptor is set to the length of the source descriptor.

panic
USER 23, if the length of the source descriptor is greater than the value of the integer template parameter.
ParameterDescription
aDesThe source 8-bit non-modifiable descriptor.

Member Function Documentation

operator= ( const TUint8 * )

TBuf8< S > &operator=(const TUint8 *aString)[inline]

Copies data into this 8-bit modifiable buffer descriptor, replacing any existing data.

The length of this descriptor is set to reflect the new data.

panic
USER 23, if the length of the string, excluding the zero terminator, is greater than the maximum length of this (target) descriptor.
ParameterDescription
aStringA pointer to a zero-terminated string.

Returns: A reference to this 8-bit modifiable buffer descriptor.

operator= ( const TDesC8 & )

TBuf8< S > &operator=(const TDesC8 &aDes)[inline]

Copies data into this 8-bit modifiable buffer descriptor, replacing any existing data.

The length of this descriptor is set to reflect the new data.

panic
USER 23, if the length of the descriptor aDes is greater than the maximum length of this (target) descriptor.
ParameterDescription
aDesAn 8 bit non-modifiable descriptor.

Returns: A reference to this 8-bit modifiable buffer descriptor.

operator= ( const TBuf8< S > & )

TBuf8< S > &operator=(const TBuf8< S > &aBuf)[inline]

Copies data into this 8-bit modifiable buffer descriptor replacing any existing data.

The length of this descriptor is set to reflect the new data.

ParameterDescription
aBufThe source 8-bit modifiable buffer descriptor with the same template value.

Returns: A reference to this 8-bit modifiable buffer descriptor.