XRootD
Loading...
Searching...
No Matches
XrdXrootdGStream.cc
Go to the documentation of this file.
1
/******************************************************************************/
2
/* */
3
/* X r d X r o o t d G S t r e a m . c c */
4
/* */
5
/* (c) 2019 by the Board of Trustees of the Leland Stanford, Jr., University */
6
/* All Rights Reserved */
7
/* Produced by Andrew Hanushevsky for Stanford University under contract */
8
/* DE-AC02-76-SFO0515 with the Department of Energy */
9
/* */
10
/* This file is part of the XRootD software suite. */
11
/* */
12
/* XRootD is free software: you can redistribute it and/or modify it under */
13
/* the terms of the GNU Lesser General Public License as published by the */
14
/* Free Software Foundation, either version 3 of the License, or (at your */
15
/* option) any later version. */
16
/* */
17
/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
18
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
19
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
20
/* License for more details. */
21
/* */
22
/* You should have received a copy of the GNU Lesser General Public License */
23
/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
24
/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
25
/* */
26
/* The copyright holder's institutional names and contributor's names may not */
27
/* be used to endorse or promote products derived from this software without */
28
/* specific prior written permission of the institution or contributor. */
29
/******************************************************************************/
30
31
#include "
XrdXrootd/XrdXrootdGStream.hh
"
32
#include "
XrdXrootd/XrdXrootdGSReal.hh
"
33
34
/******************************************************************************/
35
/* F l u s h */
36
/******************************************************************************/
37
38
void
XrdXrootdGStream::Flush
() {gStream.Flush();}
39
40
/******************************************************************************/
41
/* G e t D i c t I D */
42
/******************************************************************************/
43
44
uint32_t
XrdXrootdGStream::GetDictID
(
const
char
*text,
bool
isPath)
45
{
return
gStream.GetDictID(text, isPath);}
46
47
/******************************************************************************/
48
/* H a s H d r */
49
/******************************************************************************/
50
51
bool
XrdXrootdGStream::HasHdr
()
52
{
return
gStream.HasHdr();}
53
54
/******************************************************************************/
55
/* I n s e r t */
56
/******************************************************************************/
57
58
bool
XrdXrootdGStream::Insert
(
const
char
*data,
int
dlen)
59
{
return
gStream.Insert(data, dlen);}
60
61
bool
XrdXrootdGStream::Insert
(
int
dlen) {
return
gStream.Insert(dlen);}
62
63
/******************************************************************************/
64
/* R e s e r v e */
65
/******************************************************************************/
66
67
char
*
XrdXrootdGStream::Reserve
(
int
dlen) {
return
gStream.Reserve(dlen);}
68
69
/******************************************************************************/
70
/* S e t A u t o F l u s h */
71
/******************************************************************************/
72
73
int
XrdXrootdGStream::SetAutoFlush
(
int
afsec)
74
{
if
(afsec < 0) afsec = 0;
75
else
if
(afsec < 60) afsec = 60;
76
return
gStream.SetAutoFlush(afsec);
77
}
78
79
/******************************************************************************/
80
/* S p a c e */
81
/******************************************************************************/
82
83
int
XrdXrootdGStream::Space
()
84
{
return
gStream.Space();}
XrdXrootdGSReal.hh
XrdXrootdGStream.hh
XrdXrootdGStream::Reserve
char * Reserve(int dlen)
Definition
XrdXrootdGStream.cc:67
XrdXrootdGStream::SetAutoFlush
int SetAutoFlush(int afsec)
Definition
XrdXrootdGStream.cc:73
XrdXrootdGStream::Space
int Space()
Definition
XrdXrootdGStream.cc:83
XrdXrootdGStream::GetDictID
uint32_t GetDictID(const char *text, bool isPath=false)
Definition
XrdXrootdGStream.cc:44
XrdXrootdGStream::Insert
bool Insert(const char *data, int dlen)
Definition
XrdXrootdGStream.cc:58
XrdXrootdGStream::Flush
void Flush()
Definition
XrdXrootdGStream.cc:38
XrdXrootdGStream::HasHdr
bool HasHdr()
Definition
XrdXrootdGStream.cc:51
XrdXrootd
XrdXrootdGStream.cc
Generated by
1.14.0