Arduino-Redis
A Redis library for Arduino.
Public Member Functions | List of all members
RedisBulkString Class Reference

Detailed Description

A Bulk String: https://redis.io/topics/protocol#resp-bulk-strings

Definition at line 77 of file RedisInternal.h.

Public Member Functions

 RedisBulkString (Client &c)
 
 RedisBulkString (String &s)
 
 ~RedisBulkString () override
 
virtual void init (Client &client) override
 
virtual String RESP () override
 
- Public Member Functions inherited from RedisObject
 RedisObject ()
 
 RedisObject (Type tc)
 
 RedisObject (Type tc, Client &c)
 
virtual ~RedisObject ()
 
virtual operator String ()
 
Type type () const
 

Additional Inherited Members

- Public Types inherited from RedisObject
enum  Type {
  NoType = '\0', SimpleString = '+', Error = '-', Integer = ':',
  BulkString = '$', Array = '*', InternalError = '!'
}
 
- Static Public Member Functions inherited from RedisObject
static std::shared_ptr< RedisObjectparseType (Client &)
 
- Protected Attributes inherited from RedisObject
String data
 
Type _type = Type::NoType
 

#include <RedisInternal.h>

Inheritance diagram for RedisBulkString:
Inheritance graph
[legend]

Constructor & Destructor Documentation

◆ RedisBulkString() [1/2]

RedisBulkString::RedisBulkString ( Client &  c)
inline

Definition at line 80 of file RedisInternal.h.

◆ RedisBulkString() [2/2]

RedisBulkString::RedisBulkString ( String &  s)
inline

Definition at line 81 of file RedisInternal.h.

◆ ~RedisBulkString()

RedisBulkString::~RedisBulkString ( )
inlineoverride

Definition at line 82 of file RedisInternal.h.

Member Function Documentation

◆ init()

void RedisBulkString::init ( Client &  client)
overridevirtual

Initialize a RedisObject instance from the bytestream represented by 'client'. Only does very basic (e.g. SimpleString-style) parsing of the object from the byte stream. Concrete subclasses are expected to override this to provide class-specific parsing & initialization logic.

Reimplemented from RedisObject.

Definition at line 22 of file RedisInternal.cpp.

◆ RESP()

String RedisBulkString::RESP ( )
overridevirtual

Produce the Redis serialization protocol (RESP) representation. Must be overridden.

Implements RedisObject.

Definition at line 47 of file RedisInternal.cpp.