7#ifndef FXJS_CFX_KEYVALUE_H_
8#define FXJS_CFX_KEYVALUE_H_
13#include "core/fxcrt/bytestring.h"
virtual ~Delegate()=default
virtual absl::optional< pdfium::span< uint8_t > > LoadBuffer()=0
virtual bool StoreBuffer(pdfium::span< const uint8_t > pBuffer)=0
virtual void BufferDone()=0
bool SetGlobalVariablePersistent(ByteString propname, bool bPersistent)
Element * GetAt(int index)
void SetGlobalVariableObject(ByteString propname, std::vector< std::unique_ptr< CFX_KeyValue > > array)
void SetGlobalVariableNull(ByteString propname)
void SetGlobalVariableNumber(ByteString propname, double dData)
bool DeleteGlobalVariable(ByteString propname)
static CFX_GlobalData * GetRetainedInstance(Delegate *pDelegate)
void SetGlobalVariableBoolean(ByteString propname, bool bData)
Element * GetGlobalVariable(const ByteString &sPropname)
void SetGlobalVariableString(ByteString propname, const ByteString &sData)
std::vector< std::unique_ptr< CFX_KeyValue > > objData
void AppendUint16(uint16_t value)
void AppendSpan(pdfium::span< const uint8_t > span)
pdfium::span< const uint8_t > GetSpan() const
void AppendDouble(double value)
void AppendString(const ByteString &str)
void AppendUint32(uint32_t value)
pdfium::span< uint8_t > GetMutableSpan()