Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefPostDataElement

CefBaseRefCounted
   |
   +--CefPostDataElement

   in cef_request.h

class CefPostDataElement
extends CefBaseRefCounted

Class used to represent a single element in the request post data. The methods of this class may be called on any thread.


Inner Classes, Typedefs, and Enums
typedef CefPostDataElement::Type
          Post data elements may represent either bytes or files.
 
Method Summary
 static CefRefPtr< CefPostDataElement > Create()
          Create a new CefPostDataElement object.
 virtual size_t GetBytes( size_t size, void* bytes )= 0
          Read up to |size| bytes into |bytes| and return the number of bytes actually read.
 virtual size_t GetBytesCount()= 0
          Return the number of bytes.
 virtual CefString GetFile()= 0
          Return the file name.
 virtual CefPostDataElement::Type GetType()= 0
          Return the type of this post data element.
 virtual bool IsReadOnly()= 0
          Returns true if this object is read-only.
 virtual void SetToBytes( size_t size, const void* bytes )= 0
          The post data element will represent bytes.
 virtual void SetToEmpty()= 0
          Remove all contents from the post data element.
 virtual void SetToFile( const CefString& fileName )= 0
          The post data element will represent a file.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

Create

public static CefRefPtr< CefPostDataElement > Create();
Create a new CefPostDataElement object.

GetBytes

public virtual size_t GetBytes( size_t size, void* bytes )= 0;
Read up to |size| bytes into |bytes| and return the number of bytes actually read.

GetBytesCount

public virtual size_t GetBytesCount()= 0;
Return the number of bytes.

GetFile

public virtual CefString GetFile()= 0;
Return the file name.

GetType

public virtual CefPostDataElement::Type GetType()= 0;
Return the type of this post data element.

IsReadOnly

public virtual bool IsReadOnly()= 0;
Returns true if this object is read-only.

SetToBytes

public virtual void SetToBytes( size_t size, const void* bytes )= 0;
The post data element will represent bytes. The bytes passed in will be copied.

SetToEmpty

public virtual void SetToEmpty()= 0;
Remove all contents from the post data element.

SetToFile

public virtual void SetToFile( const CefString& fileName )= 0;
The post data element will represent a file.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt