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
33
34/******************************************************************************/
35/* F l u s h */
36/******************************************************************************/
37
38void XrdXrootdGStream::Flush() {gStream.Flush();}
39
40/******************************************************************************/
41/* G e t D i c t I D */
42/******************************************************************************/
43
44uint32_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
52 {return gStream.HasHdr();}
53
54/******************************************************************************/
55/* I n s e r t */
56/******************************************************************************/
57
58bool XrdXrootdGStream::Insert(const char *data, int dlen)
59 {return gStream.Insert(data, dlen);}
60
61bool XrdXrootdGStream::Insert(int dlen) {return gStream.Insert(dlen);}
62
63/******************************************************************************/
64/* R e s e r v e */
65/******************************************************************************/
66
67char *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
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
84 {return gStream.Space();}
uint32_t GetDictID(const char *text, bool isPath=false)
char * Reserve(int dlen)
int SetAutoFlush(int afsec)
bool Insert(const char *data, int dlen)
char * Reserve(int dlen)
int SetAutoFlush(int afsec)
uint32_t GetDictID(const char *text, bool isPath=false)
bool Insert(const char *data, int dlen)