Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes | Friends
nsLDAPBERValue Class Reference

#include <nsLDAPBERValue.h>

Inheritance diagram for nsLDAPBERValue:
Inheritance graph
[legend]
Collaboration diagram for nsLDAPBERValue:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSILDAPBERVALUE 
nsLDAPBERValue ()
virtual ~nsLDAPBERValue ()
void set (in unsigned long aCount,[array, size_is(aCount)] in octet aValue)
 Set the BER value from an array of bytes (copies).
void setFromUTF8 (in AUTF8String aValue)
 Set the BER value from a UTF8 string (copies).
void get (out unsigned long aCount,[retval, array, size_is(aCount)] out octet aRetVal)
 Get the BER value as an array of bytes.

Protected Attributes

PRUint8mValue
PRUint32 mSize

Friends

class nsLDAPControl
 nsLDAPControl needs to be able to grovel through this without an an extra copy

Detailed Description

Definition at line 52 of file nsLDAPBERValue.h.


Constructor & Destructor Documentation

Definition at line 47 of file nsLDAPBERValue.cpp.

                               : mValue(0), mSize(0)
{
}

Definition at line 51 of file nsLDAPBERValue.cpp.

{
    if (mValue) {
        nsMemory::Free(mValue);
    }
}

Member Function Documentation

void nsILDAPBERValue::get ( out unsigned long  aCount,
[retval, array, size_is(aCount)] out octet  aRetVal 
) [inherited]

Get the BER value as an array of bytes.

Note that if this value is zero-length, aCount and aRetVal will both be 0. This means that (in C++ anyway) the caller MUST test either aCount or aRetval before dereferencing aRetVal.

Exceptions:
NS_ERROR_OUT_OF_MEMORYcouldn't allocate buffer to copy to
void nsILDAPBERValue::set ( in unsigned long  aCount,
[array, size_is(aCount)] in octet  aValue 
) [inherited]

Set the BER value from an array of bytes (copies).

Exceptions:
NS_ERROR_OUT_OF_MEMORYcouldn't allocate buffer to copy to
void nsILDAPBERValue::setFromUTF8 ( in AUTF8String  aValue) [inherited]

Set the BER value from a UTF8 string (copies).

Exceptions:
NS_ERROR_OUT_OF_MEMORYcouldn't allocate buffer to copy to

Friends And Related Function Documentation

friend class nsLDAPControl [friend]

nsLDAPControl needs to be able to grovel through this without an an extra copy

Definition at line 67 of file nsLDAPBERValue.h.


Member Data Documentation

Definition at line 70 of file nsLDAPBERValue.h.

Definition at line 69 of file nsLDAPBERValue.h.


The documentation for this class was generated from the following files: