Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
buffer.h
Package: vlc-1.0.5.zip [view]
Upload User: kjfoods
Upload Date: 2020-07-06
Package Size: 29949k
Code Size: 3k
Category:
midi program
Development Platform:
Unix_Linux
- /*****************************************************************************
- * buffer.h: MMS access plug-in
- *****************************************************************************
- * Copyright (C) 2001, 2002 the VideoLAN team
- * $Id: e969fe37a7b9490b97e87bf68b8782e3fc908e05 $
- *
- * Authors: Laurent Aimar <fenrir@via.ecp.fr>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
- #ifndef _MMS_BUFFER_H_
- #define _MMS_BUFFER_H_ 1
- typedef struct
- {
- uint8_t *p_data; // pointer on data
- int i_data; // number of bytes set in p_data
- // private
- int i_size; // size of p_data memory allocated
- } var_buffer_t;
- /*****************************************************************************
- * Macro/Function to create/manipulate buffer
- *****************************************************************************/
- int var_buffer_initwrite( var_buffer_t *p_buf, int i_default_size );
- int var_buffer_reinitwrite( var_buffer_t *p_buf, int i_default_size );
- void var_buffer_add8 ( var_buffer_t *p_buf, uint8_t i_byte );
- void var_buffer_add16( var_buffer_t *p_buf, uint16_t i_word );
- void var_buffer_add32( var_buffer_t *p_buf, uint32_t i_word );
- void var_buffer_add64( var_buffer_t *p_buf, uint64_t i_word );
- void var_buffer_addmemory( var_buffer_t *p_buf, void *p_mem, int i_mem );
- void var_buffer_addUTF16( var_buffer_t *p_buf, const char *p_str );
- void var_buffer_free( var_buffer_t *p_buf );
- void var_buffer_initread( var_buffer_t *p_buf, void *p_data, int i_data );
- uint8_t var_buffer_get8 ( var_buffer_t *p_buf );
- uint16_t var_buffer_get16( var_buffer_t *p_buf );
- uint32_t var_buffer_get32( var_buffer_t *p_buf );
- uint64_t var_buffer_get64( var_buffer_t *p_buf );
- int var_buffer_getmemory ( var_buffer_t *p_buf, void *p_mem, int64_t i_mem );
- int var_buffer_readempty( var_buffer_t *p_buf );
- void var_buffer_getguid( var_buffer_t *p_buf, guid_t *p_guid );
- #endif