---
UID: NF:amstream.IAMMediaTypeSample.GetSize
title: IAMMediaTypeSample::GetSize (amstream.h)
description: Note  This interface is deprecated. New applications should not use it. The GetSize method retrieves the size of the buffer data area, in bytes.
old-location: dshow\iammediatypesample_getsize.htm
tech.root: DirectShow
ms.assetid: 57dd7ec9-7615-42c5-9da7-44c4d71535c4
ms.date: 12/05/2018
ms.keywords: GetSize, GetSize method [DirectShow], GetSize method [DirectShow],IAMMediaTypeSample interface, IAMMediaTypeSample interface [DirectShow],GetSize method, IAMMediaTypeSample.GetSize, IAMMediaTypeSample::GetSize, IAMMediaTypeSampleGetSize, amstream/IAMMediaTypeSample::GetSize, dshow.iammediatypesample_getsize
f1_keywords:
- amstream/IAMMediaTypeSample.GetSize
dev_langs:
- c++
req.header: amstream.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- amstream.h
api_name:
- IAMMediaTypeSample.GetSize
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IAMMediaTypeSample::GetSize


## -description



<div class="alert"><b>Note</b>  This interface is deprecated. New applications should not use it.</div>
<div> </div>
The <code>GetSize</code> method retrieves the size of the buffer data area, in bytes.




## -parameters






## -returns



Returns the size of the buffer data area, in bytes.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/amstream/nn-amstream-iammediatypesample">IAMMediaTypeSample Interface</a>
 

 

