Skip to content

Commit ddf1dcd

Browse files
YAML: LibSWOC++ BufferWriter format update.
1 parent afc13db commit ddf1dcd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3278
-2593
lines changed

include/tscore/BufferWriter.h

Lines changed: 0 additions & 897 deletions
This file was deleted.

include/tscore/BufferWriterForward.h

Lines changed: 0 additions & 150 deletions
This file was deleted.

include/tscore/CryptoHash.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#pragma once
2424

25-
#include "tscore/BufferWriter.h"
25+
#include "tscpp/util/BufferWriter.h"
2626
#include <string_view>
2727

2828
/// Apache Traffic Server commons.
@@ -180,7 +180,7 @@ CryptoContext::finalize(CryptoHash &hash)
180180
return reinterpret_cast<CryptoContextBase *>(_obj)->finalize(hash);
181181
}
182182

183-
ts::BufferWriter &bwformat(ts::BufferWriter &w, ts::BWFSpec const &spec, ats::CryptoHash const &hash);
183+
ts::BufferWriter &bwformat(ts::BufferWriter &w, ts::bwf::Spec const &spec, ats::CryptoHash const &hash);
184184

185185
} // namespace ats
186186

include/tscore/SourceLocation.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#pragma once
2525

26-
#include "tscore/BufferWriterForward.h"
26+
#include "tscpp/util/BufferWriter.h"
2727

2828
// The SourceLocation class wraps up a source code location, including
2929
// file name, function name, and line number, and contains a method to
@@ -59,13 +59,13 @@ class SourceLocation
5959
}
6060

6161
char *str(char *buf, int buflen) const;
62-
ts::BufferWriter &print(ts::BufferWriter &w, ts::BWFSpec const &spec) const;
62+
ts::BufferWriter &print(ts::BufferWriter &w, ts::bwf::Spec const &spec) const;
6363
};
6464

6565
namespace ts
6666
{
6767
inline BufferWriter &
68-
bwformat(BufferWriter &w, BWFSpec const &spec, SourceLocation const &loc)
68+
bwformat(BufferWriter &w, bwf::Spec const &spec, SourceLocation const &loc)
6969
{
7070
return loc.print(w, spec);
7171
}

include/tscore/ink_inet.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#include "tscore/ink_memory.h"
3333
#include "tscore/ink_apidefs.h"
34-
#include "tscore/BufferWriterForward.h"
34+
#include "tscpp/util/BufferWriter.h"
3535

3636
#if !TS_HAS_IN6_IS_ADDR_UNSPECIFIED
3737
#if defined(IN6_IS_ADDR_UNSPECIFIED)
@@ -1551,10 +1551,10 @@ IpEndpoint::setToLoopback(int family)
15511551
// BufferWriter formatting support.
15521552
namespace ts
15531553
{
1554-
BufferWriter &bwformat(BufferWriter &w, BWFSpec const &spec, IpAddr const &addr);
1555-
BufferWriter &bwformat(BufferWriter &w, BWFSpec const &spec, sockaddr const *addr);
1554+
BufferWriter &bwformat(BufferWriter &w, bwf::Spec const &spec, IpAddr const &addr);
1555+
BufferWriter &bwformat(BufferWriter &w, bwf::Spec const &spec, sockaddr const *addr);
15561556
inline BufferWriter &
1557-
bwformat(BufferWriter &w, BWFSpec const &spec, IpEndpoint const &addr)
1557+
bwformat(BufferWriter &w, bwf::Spec const &spec, IpEndpoint const &addr)
15581558
{
15591559
return bwformat(w, spec, &addr.sa);
15601560
}

include/tscore/ts_file.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <sys/stat.h>
3131
#include "tscore/ink_memory.h"
3232
#include "tscpp/util/TextView.h"
33-
#include "tscore/BufferWriter.h"
33+
#include "tscpp/util/BufferWriter.h"
3434

3535
namespace ts
3636
{

0 commit comments

Comments
 (0)