Skip to content

Commit

Permalink
Add the apr_buffer API.
Browse files Browse the repository at this point in the history
An APR buffer is a structure that can contain a zero terminated string, or
a non zero terminated block of memory, and allow such structures to be
passed around and handled in a memory efficient way.

We allow two buffers to be compared without duplicating strings. Memory
buffers can be converted to string buffers safely. The contents of buffers
can be copied into and out of other systems like caches using memory
allocation callbacks.

Used by the new LDAP API, where string support has been deprecated in
favour of fixed sized buffers.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1917047 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
minfrin committed Apr 16, 2024
1 parent 44b2ed9 commit e043158
Show file tree
Hide file tree
Showing 10 changed files with 1,059 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
-*- coding: utf-8 -*-
Changes for APR 2.0.0

*) apr_buffer: Add the apr_buffer API. [Graham Leggett]

*) apr_escape: Add apr_escape_json() and apr_pescape_json().
[Graham Leggett]

Expand Down
Loading

0 comments on commit e043158

Please sign in to comment.