Home
last modified time | relevance | path

Searched refs:StringData (Results 1 – 19 of 19) sorted by relevance

/haiku/src/add-ons/kernel/file_systems/packagefs/util/
H A DStringPool.h21 class StringData; variable
65 static StringData* Get(const char* string, size_t length);
66 static void LastReferenceReleased(StringData* data);
71 static StringData* _GetLocked(const StringDataKey& key);
79 class StringData {
83 static StringData* Create(const StringDataKey& key) in Create()
85 void* data = malloc(sizeof(StringData) + key.Length() + 1); in Create()
89 return new(data) StringData(key); in Create()
92 static StringData* Empty() in Empty()
97 static StringData* GetEmpty() in GetEmpty()
[all …]
H A DStringPool.cpp15 static char sEmptyStringBuffer[sizeof(StringData) + 1];
17 StringData* StringData::fEmptyString;
27 StringData::Init() in Init()
29 fEmptyString = new(sEmptyStringBuffer) StringData(StringDataKey("", 0)); in Init()
49 StringData::Init(); in Init()
50 sStrings->Insert(StringData::Empty()); in Init()
59 sStrings->Remove(StringData::Empty()); in Cleanup()
68 /*static*/ inline StringData*
71 if (StringData* string = sStrings->Lookup(key)) { in _GetLocked()
84 /*static*/ StringData*
[all …]
H A DString.h36 StringData* fData;
43 fData(StringData::GetEmpty()) in String()
95 return fData == StringData::Empty(); in IsEmpty()
H A DString.cpp13 StringData* data = StringPool::Get(string, length); in SetToExactLength()
/haiku/src/add-ons/kernel/file_systems/netfs/headers/shared/
H A DRequests.h339 StringData share;
340 StringData user; // can be NULL, if the connection supports
341 StringData password; // authentication; otherwise NULL means anonymous
453 StringData name;
611 StringData name;
639 StringData name;
667 StringData name;
668 StringData target;
729 StringData oldName;
731 StringData newName;
[all …]
H A DEntryInfo.h13 StringData name;
H A DAttrDirInfo.h14 StringData name;
H A DRequest.h42 struct StringData : Data { struct
129 StringData& data) = 0;
H A DRequestDumper.h27 virtual void Visit(RequestMember* member, StringData& data);
H A DRequestUnflattener.h41 virtual void Visit(RequestMember* member, StringData& data);
H A DRequestFlattener.h59 virtual void Visit(RequestMember* member, StringData& data);
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DRequestBufferReplacer.h26 virtual void Visit(RequestMember* member, StringData& data);
H A DRequestBufferReplacer.cpp122 RequestBufferReplacer::Visit(RequestMember* member, StringData& data) in Visit()
H A DClientConnection.cpp1842 StringData* names = request->names.GetElements(); in VisitMultiWalkRequest()
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DRequestDumper.cpp106 RequestDumper::Visit(RequestMember* member, StringData& data) in Visit()
H A DServerInfo.cpp13 StringData stringData; in VisitString()
H A DRequestFlattener.cpp185 RequestFlattener::Visit(RequestMember* member, StringData& data) in Visit()
H A DRequestUnflattener.cpp186 RequestUnflattener::Visit(RequestMember* member, StringData& data) in Visit()
/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DShareVolume.cpp2930 StringData name; in _MultiWalk()