MCPcopy Create free account
hub / github.com/SmingHub/Sming / getAttributePtr

Method getAttributePtr

Sming/Libraries/Spiffs/src/FileMeta.cpp:27–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace IFS::SPIFFS
26{
27void* FileMeta::getAttributePtr(AttributeTag tag)
28{
29 switch(tag) {
30 case AttributeTag::ModifiedTime:
31 return &mtime;
32 case AttributeTag::ReadAce:
33 return &acl.readAccess;
34 case AttributeTag::WriteAce:
35 return &acl.writeAccess;
36 case AttributeTag::Compression:
37 return &compression;
38 case AttributeTag::FileAttributes:
39 return &attr;
40 default:
41 return nullptr;
42 }
43}
44
45int SpiffsMetaBuffer::enumxattr(const AttributeEnumCallback& callback, void* buffer, size_t bufsize)
46{

Callers 3

enumxattrMethod · 0.80
getxattrMethod · 0.80
setxattrMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected