/* Trim a single NET_BLOCK by Len bytes from the header or tail. */
VOID NetblockTrim(IN OUT NET_BLOCK_OP *BlockOp, IN UINT32 Len, IN BOOLEAN FromHead)
/* Trim a single NET_BLOCK by Len bytes from the header or tail. */
VOID NetblockTrim(IN OUT NET_BLOCK_OP *BlockOp, IN UINT32 Len, IN BOOLEAN FromHead)
{
  ASSERT ((BlockOp != NULL) && (BlockOp->Size >= Len));
  BlockOp->Size -= Len;
  if (FromHead) {
    BlockOp->Head += Len;
  } else {
    BlockOp->Tail -= Len;
  }
}