/* Called by the low layer protocol to copy some data in the socket send buffer starting from the specific offset to a buffer provided by the caller. */
UINT32 SockGetDataToSend(IN SOCKET *Sock, IN UINT32 Offset, IN UINT32 Len, OUT UINT8 *Dest)
/* Called by the low layer protocol to copy some data in the socket send buffer starting from the specific offset to a buffer provided by the caller. */
UINT32 SockGetDataToSend(IN SOCKET *Sock, IN UINT32 Offset, IN UINT32 Len, OUT UINT8 *Dest)
{
  ASSERT ((Sock != NULL) && SockStream == Sock->Type);
  return NetbufQueCopy (
           Sock->SndBuffer.DataQueue,
           Offset,
           Len,
           Dest
           );
}