У нас больше 150 тысяч программ и в день наши файлы скачивают больше 30 тысяч раз
Войти  · Регистрация 
Расширенный поиск Наши RSS Наши рассылки
Скриншоты

Категории

Похожие скрипты
Популярные скрипты
Новости интернета
Google Chrome будет поддерживать функцию видео-конференций и голосовой связи
Согласно информации CNET News, Google намерен встроить в браузер Chrome поддержку протокола WebRTC,
Nokia представила пользователям новый интернет-пейджер
Nokia выпустила для своих смартфонов собственный вариант клиента для обмена короткими сообщениями.
Сбои в Skype участились
Пользователи сервиса Skype вот уже второй раз за последние две недели столкнулись с проблемами в раб
Интернет-блокаду в Египте обойдут Google и Twitter!
Google и Twitter объединили свои усилия для того, чтобы найти способ обойти интернет-блокаду в Египт
Skype 5.1 поддерживает групповые видео звонки
Компания Skype сосредоточилась на создании программных решений для бизнес-пользователей. Версия Skyp

Vstr 1.0.15

Vstr is a string library, designed so you can work optimally with readv()/writev() for input/output.

Скачать скрипт| Отправить другу| Сообщать о новых версиях

Есть вопросы по скрипту? Просто задайте вопрос


АвторJames Antill
Сайтwww.and.org
Обновление21.06.2007, 12:50
ЯзыкиАнглийский
ЛицензияLGPL License
Стоимость
СистемыWindows/Linux/Mac OS/BSD/Solaris
Язык скриптаC/C++
Размер?
Рейтинг
Голосов: 2

  Скачать бесплатно Vstr
Скачать скрипт

Скачали раз: 9

Описание скрипта Vstr

Vstr is a string library, designed so you can work optimally with readv()/writev() for input/output. This means that, for instance, you can readv() data to the end of the string and writev() data from the beginning of the string without having to allocate or move memory.
It also means that the library is completely happy with data that has multiple zero bytes in it.
This design constraint means that unlike most string libraries Vstr doesn't have an internal representation of the string where everything can be accessed from a single (char *) pointer in C, the internal representation is of multiple "blocks" or nodes each carrying some of the data for the string.
This model of representing the data also means that as a string gets bigger the Vstr memory usage only goes up linearly and has no inherent copying (due to other string libraries increasing space for the string via. realloc() the memory usage can be triple the required size and require a complete copy of the string).
It also means that adding, substituting or moving data anywhere in the string can be optimized a lot, to require O(1) copying instead of O(n). Speaking of O(1), it's worth remembering that if you have a Vstr string with caching it is O(1) to get all the data to the writev() system call (the cat example below shows an example of this, the write call is always constant time.
As well as having features directly related to doing IO well it contains functions for:
· a printf like function that is fully ISO 9899:1999 (C99) compliant, also having %m as standard and POSIX i18n parameter number modifiers. It also allows gcc warning compatible customer format specifiers (and includes pre-written custom format specifiers for ipv4 and ipv6 addresses, Vstr strings and more)
· splitting of strings into parameter/record chunks (a la perl).
· substituting data in a Vstr string
· moving data from one Vstr string to another (or within a Vstr string).
· comparing strings (without regard for case, or taking into account version information)
· searching for data in strings (with or without regard for case).
· counting spans of data in a string (the equivalent of strspn() in ISO C).
· converting data in a Vstr (Ie. delete/substitute unprintable characters or making a Vstr string lowercase/uppercase).
· parsing data from a Vstr string (Ie. numbers, or ipv4 addresses).
· easily parsing and wrapping outgoing data in netstrings, for fast and simple (and hence less error prone) network communication
· the ability to cache aspects of data about a Vstr string, to both simplify and speedup use of the string.
· the ability to have empty data as part of the string, this is somewhat useful for representing file transfers as a string as you can represent the file data as empty data in the string.

Ключевые особенности и характеристики Vstr
    Не определены
Ограничения бесплатной версии Vstr
    Ограничения не определены
Специальные требования Vstr 1.0.15
    Специальные требования не определены
История версий и изменений Vstr 1.0.15
    История изменений пуста
Описание и дополнения от редакторов и пользователей сайта
Пока нет


   del.icio.us digg.com reddit.com google.com yahoo.com furl.net newsvine.com slashdot.org simpy.com news2.ru moemesto.ru memori.ru rucity.com     Добавить отзыв



Еще программы от этого автора
Больше не найдено скриптов этого автора.
Новые скрипты

Statex 1.1
Счетчик посещений сайта.

WebSiteTree
Платформа, для создания многофункционального, универсального тематического каталога-рейтинга сайтов.

Lite Poll v0.1
Скрипт опроса с самыми необходимыми возможностями

Speex 1.2b2
Speex is a patent-free audio compression format designed for speech.

C++ Threads 3.6
C++ Threads library provides process scoping, a feature that has been greatly missed in the linux community.

Vstr 1.0.15
Vstr is a string library, designed so you can work optimally with readv()/writev() for input/output.

UDS Collection 1.0.7
UDS Collection is a C++ library that assists you while developing and debugging programs.

WB library 1c3-1
1 - WB library is a disk based, sorted associative array C library.

Yed library 2.0.0
Yed library contains objects that handle XML files, FTP connections, file system operations and so on.

Xbase 2.0.0
Xbase is a collection of specifications, programs, utilities and a C++ class library for manipulating Xbase type datafiles and indices.


Главная Новости Статьи Софт Скрипты Драйвера Сервисы Форумы Файлы

MyDiv © 2011 - С нами легко быть в курсе событий и тенденций, скачивать программы, драйвера, скрипты, спрашивать и получать ответы на свои вопросы. Легко, быстро, просто.

Политика конфиденциальностиАвторамРеклама на сайтеАдминистрацияReport Abuse
Скрипты:MyDiv - Скачивайте скрипты на PHP, Perl, Javascript и многое другое