OSDN Git Service

(none)
[hos/hos-v4a.git] / aplfw / library / container / packetbuf / packetbuf_sendbuf.c
1 /** 
2  *  Hyper Operating System  Application Framework
3  *
4  * @file  packetbuf.h
5  * @brief %jp{パケットデータ用バッファクラス}
6  *
7  * Copyright (C) 2002-2007 by Project HOS
8  * http://sourceforge.jp/projects/hos/
9  */
10
11
12 #include "packetbuf_local.h"
13
14
15
16 /** バッファ内のデータの送信(省コピー) */
17 void PacketBuf_SendBuf(C_PACKETBUF *self, unsigned int uiSize)
18 {
19         /* サイズの格納 */
20         *(unsigned int *)(self->pubBuf + self->uiTail) = uiSize;
21         
22         /* 末尾位置の更新 */
23         self->uiTail += PACKETBUF_DATASIZE(uiSize);
24 }
25
26
27 /* end of file */