equal
deleted
inserted
replaced
976 |
976 |
977 @see HBufC8::operator=() |
977 @see HBufC8::operator=() |
978 */ |
978 */ |
979 { |
979 { |
980 __ASSERT_ALWAYS(aMaxLength>=0,Panic(ETDes8MaxLengthNegative)); |
980 __ASSERT_ALWAYS(aMaxLength>=0,Panic(ETDes8MaxLengthNegative)); |
981 return new(STD_CLASS::Alloc(_FOFF(HBufC8,iBuf[aMaxLength]))) HBufC8(0); |
981 return new(STD_CLASS::Alloc(_FOFF_DYNAMIC(HBufC8,iBuf[aMaxLength]))) HBufC8(0); |
982 } |
982 } |
983 |
983 |
984 EXPORT_C HBufC8 *HBufC8::NewL(TInt aMaxLength) |
984 EXPORT_C HBufC8 *HBufC8::NewL(TInt aMaxLength) |
985 /** |
985 /** |
986 Creates, and returns a pointer to, a new 8-bit heap descriptor, and leaves |
986 Creates, and returns a pointer to, a new 8-bit heap descriptor, and leaves |
1055 |
1055 |
1056 @see HBufC8::operator=() |
1056 @see HBufC8::operator=() |
1057 */ |
1057 */ |
1058 { |
1058 { |
1059 __ASSERT_ALWAYS(aMaxLength>=0,Panic(ETDes8MaxLengthNegative)); |
1059 __ASSERT_ALWAYS(aMaxLength>=0,Panic(ETDes8MaxLengthNegative)); |
1060 return new(STD_CLASS::Alloc(_FOFF(HBufC8,iBuf[aMaxLength]))) HBufC8(aMaxLength); |
1060 return new(STD_CLASS::Alloc(_FOFF_DYNAMIC(HBufC8,iBuf[aMaxLength]))) HBufC8(aMaxLength); |
1061 } |
1061 } |
1062 |
1062 |
1063 EXPORT_C HBufC8 *HBufC8::NewMaxL(TInt aMaxLength) |
1063 EXPORT_C HBufC8 *HBufC8::NewMaxL(TInt aMaxLength) |
1064 /** |
1064 /** |
1065 Creates, and returns a pointer to, a new 8-bit heap descriptor; |
1065 Creates, and returns a pointer to, a new 8-bit heap descriptor; |