XRootD
Loading...
Searching...
No Matches
XrdSutPFBuf Class Reference

#include <XrdSutPFEntry.hh>

+ Collaboration diagram for XrdSutPFBuf:

Public Member Functions

 XrdSutPFBuf (char *b=0, kXR_int32 l=0)
 
 XrdSutPFBuf (const XrdSutPFBuf &b)
 
virtual ~XrdSutPFBuf ()
 
void SetBuf (const char *b=0, kXR_int32 l=0)
 

Public Attributes

char * buf
 
kXR_int32 len
 

Detailed Description

Definition at line 55 of file XrdSutPFEntry.hh.

Constructor & Destructor Documentation

◆ XrdSutPFBuf() [1/2]

XrdSutPFBuf::XrdSutPFBuf ( char * b = 0,
kXR_int32 l = 0 )

Definition at line 37 of file XrdSutPFEntry.cc.

38{
39 // Constructor
40
41 len = 0;
42 buf = 0;
43 if (b) {
44 buf = b;
45 len = l;
46 }
47}
kXR_int32 len

References buf, and len.

Referenced by XrdSutPFBuf().

+ Here is the caller graph for this function:

◆ XrdSutPFBuf() [2/2]

XrdSutPFBuf::XrdSutPFBuf ( const XrdSutPFBuf & b)

Definition at line 50 of file XrdSutPFEntry.cc.

51{
52 //Copy constructor
53
54 buf = 0;
55 len = 0;
56 if (b.buf) {
57 buf = new char[b.len];
58 if (buf) {
59 memcpy(buf,b.buf,b.len);
60 len = b.len;
61 }
62 }
63}

References XrdSutPFBuf(), buf, and len.

+ Here is the call graph for this function:

◆ ~XrdSutPFBuf()

virtual XrdSutPFBuf::~XrdSutPFBuf ( )
inlinevirtual

Definition at line 62 of file XrdSutPFEntry.hh.

62{ if (len > 0 && buf) delete[] buf; }

References buf, and len.

Member Function Documentation

◆ SetBuf()

void XrdSutPFBuf::SetBuf ( const char * b = 0,
kXR_int32 l = 0 )

Definition at line 66 of file XrdSutPFEntry.cc.

67{
68 // Set the buffer
69
70 len = 0;
71 if (buf) {
72 delete[] buf;
73 buf = 0;
74 }
75 if (b && l > 0) {
76 buf = new char[l];
77 if (buf) {
78 memcpy(buf,b,l);
79 len = l;
80 }
81 }
82}

References buf, and len.

Referenced by AddPassword(), AddPassword(), and main().

+ Here is the caller graph for this function:

Member Data Documentation

◆ buf

◆ len


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