blob: 0860b2a0503cfcfec3c5e1e093239a4f3e9399dc [file] [log] [blame]
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class RamUsageEstimator
| Apache Lucene.NET 4.8.0-beta00010 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class RamUsageEstimator
| Apache Lucene.NET 4.8.0-beta00010 Documentation ">
<meta name="generator" content="docfx 2.56.0.0">
<link rel="shortcut icon" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/favicon.ico">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.css">
<meta property="docfx:navrel" content="toc.html">
<meta property="docfx:tocrel" content="core/toc.html">
<meta property="docfx:rel" content="https://lucenenet.apache.org/docs/4.8.0-beta00009/">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img id="logo" class="svg" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/lucene-net-color.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search">
<ul class="level0 breadcrumb">
<li>
<a href="https://lucenenet.apache.org/docs/4.8.0-beta00009/">API</a>
<span id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</span>
</li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list"></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Lucene.Net.Util.RamUsageEstimator">
<h1 id="Lucene_Net_Util_RamUsageEstimator" data-uid="Lucene.Net.Util.RamUsageEstimator" class="text-break">Class RamUsageEstimator
</h1>
<div class="markdown level0 summary"><p>Estimates the size (memory representation) of .NET objects.
<p>
<div class="lucene-block lucene-internal">This is a Lucene.NET INTERNAL API, use at your own risk</div></div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><span class="xref">RamUsageEstimator</span></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
<div>
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.ToString()</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="Lucene.Net.Util.html">Lucene.Net.Util</a></h6>
<h6><strong>Assembly</strong>: Lucene.Net.dll</h6>
<h5 id="Lucene_Net_Util_RamUsageEstimator_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public sealed class RamUsageEstimator</code></pre>
</div>
<h3 id="fields">Fields
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_ARRAY_HEADER.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L101">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_ARRAY_HEADER" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER">NUM_BYTES_ARRAY_HEADER</h4>
<div class="markdown level1 summary"><p>Number of bytes to represent an array header (no content, but with alignments).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static readonly int NUM_BYTES_ARRAY_HEADER</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_BOOLEAN.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_BOOLEAN%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L63">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_BOOLEAN" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_BOOLEAN">NUM_BYTES_BOOLEAN</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int NUM_BYTES_BOOLEAN = 1</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_BYTE.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_BYTE%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L64">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_BYTE" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_BYTE">NUM_BYTES_BYTE</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int NUM_BYTES_BYTE = 1</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_CHAR.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_CHAR%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L65">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_CHAR" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_CHAR">NUM_BYTES_CHAR</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int NUM_BYTES_CHAR = 2</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_DOUBLE.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_DOUBLE%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L86">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_DOUBLE" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_DOUBLE">NUM_BYTES_DOUBLE</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int NUM_BYTES_DOUBLE = 8</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_INT16.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_INT16%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L70">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_INT16" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_INT16">NUM_BYTES_INT16</h4>
<div class="markdown level1 summary"><p>NOTE: This was NUM_BYTES_SHORT in Lucene</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int NUM_BYTES_INT16 = 2</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_INT32.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_INT32%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L75">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_INT32" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_INT32">NUM_BYTES_INT32</h4>
<div class="markdown level1 summary"><p>NOTE: This was NUM_BYTES_INT in Lucene</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int NUM_BYTES_INT32 = 4</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_INT64.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_INT64%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L85">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_INT64" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_INT64">NUM_BYTES_INT64</h4>
<div class="markdown level1 summary"><p>NOTE: This was NUM_BYTES_LONG in Lucene</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int NUM_BYTES_INT64 = 8</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_OBJECT_ALIGNMENT.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_OBJECT_ALIGNMENT%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L107">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_OBJECT_ALIGNMENT" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_OBJECT_ALIGNMENT">NUM_BYTES_OBJECT_ALIGNMENT</h4>
<div class="markdown level1 summary"><p>A constant specifying the object alignment boundary inside the .NET runtime. Objects will
always take a full multiple of this constant, possibly wasting some space.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static readonly int NUM_BYTES_OBJECT_ALIGNMENT</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_OBJECT_HEADER.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_OBJECT_HEADER%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L96">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_OBJECT_HEADER" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_OBJECT_HEADER">NUM_BYTES_OBJECT_HEADER</h4>
<div class="markdown level1 summary"><p>Number of bytes to represent an object header (no fields, no alignments).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static readonly int NUM_BYTES_OBJECT_HEADER</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_OBJECT_REF.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_OBJECT_REF%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L91">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_OBJECT_REF" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_OBJECT_REF">NUM_BYTES_OBJECT_REF</h4>
<div class="markdown level1 summary"><p>Number of bytes this .NET runtime uses to represent an object reference.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static readonly int NUM_BYTES_OBJECT_REF</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_SINGLE.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_SINGLE%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L80">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_SINGLE" data-uid="Lucene.Net.Util.RamUsageEstimator.NUM_BYTES_SINGLE">NUM_BYTES_SINGLE</h4>
<div class="markdown level1 summary"><p>NOTE: This was NUM_BYTES_FLOAT in Lucene</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int NUM_BYTES_SINGLE = 4</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_ONE_GB.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.ONE_GB%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L55">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_ONE_GB" data-uid="Lucene.Net.Util.RamUsageEstimator.ONE_GB">ONE_GB</h4>
<div class="markdown level1 summary"><p>One gigabyte bytes. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const long ONE_GB = 1073741824L</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_ONE_KB.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.ONE_KB%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L47">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_ONE_KB" data-uid="Lucene.Net.Util.RamUsageEstimator.ONE_KB">ONE_KB</h4>
<div class="markdown level1 summary"><p>One kilobyte bytes. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const long ONE_KB = 1024L</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_ONE_MB.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.ONE_MB%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L51">View Source</a>
</span>
<h4 id="Lucene_Net_Util_RamUsageEstimator_ONE_MB" data-uid="Lucene.Net.Util.RamUsageEstimator.ONE_MB">ONE_MB</h4>
<div class="markdown level1 summary"><p>One megabyte bytes. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const long ONE_MB = 1048576L</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_AlignObjectSize_System_Int64_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.AlignObjectSize(System.Int64)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L284">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_AlignObjectSize_" data-uid="Lucene.Net.Util.RamUsageEstimator.AlignObjectSize*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_AlignObjectSize_System_Int64_" data-uid="Lucene.Net.Util.RamUsageEstimator.AlignObjectSize(System.Int64)">AlignObjectSize(Int64)</h4>
<div class="markdown level1 summary"><p>Aligns an object size to be the next multiple of <a class="xref" href="Lucene.Net.Util.RamUsageEstimator.html#Lucene_Net_Util_RamUsageEstimator_NUM_BYTES_OBJECT_ALIGNMENT">NUM_BYTES_OBJECT_ALIGNMENT</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long AlignObjectSize(long size)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">size</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_HumanReadableUnits_System_Int64_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.HumanReadableUnits(System.Int64)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L664">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_HumanReadableUnits_" data-uid="Lucene.Net.Util.RamUsageEstimator.HumanReadableUnits*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_HumanReadableUnits_System_Int64_" data-uid="Lucene.Net.Util.RamUsageEstimator.HumanReadableUnits(System.Int64)">HumanReadableUnits(Int64)</h4>
<div class="markdown level1 summary"><p>Returns <code>size</code> in human-readable units (GB, MB, KB or bytes).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string HumanReadableUnits(long bytes)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">bytes</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_HumanReadableUnits_System_Int64_System_IFormatProvider_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.HumanReadableUnits(System.Int64%2CSystem.IFormatProvider)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L672">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_HumanReadableUnits_" data-uid="Lucene.Net.Util.RamUsageEstimator.HumanReadableUnits*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_HumanReadableUnits_System_Int64_System_IFormatProvider_" data-uid="Lucene.Net.Util.RamUsageEstimator.HumanReadableUnits(System.Int64,System.IFormatProvider)">HumanReadableUnits(Int64, IFormatProvider)</h4>
<div class="markdown level1 summary"><p>Returns <code>size</code> in human-readable units (GB, MB, KB or bytes).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string HumanReadableUnits(long bytes, IFormatProvider df)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td><span class="parametername">bytes</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.IFormatProvider</span></td>
<td><span class="parametername">df</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_HumanSizeOf_System_Object_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.HumanSizeOf(System.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L696">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_HumanSizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.HumanSizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_HumanSizeOf_System_Object_" data-uid="Lucene.Net.Util.RamUsageEstimator.HumanSizeOf(System.Object)">HumanSizeOf(Object)</h4>
<div class="markdown level1 summary"><p>Return a human-readable size of a given object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string HumanSizeOf(object object)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Object</span></td>
<td><span class="parametername">object</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 id="Lucene_Net_Util_RamUsageEstimator_HumanSizeOf_System_Object__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Lucene.Net.Util.RamUsageEstimator.html#Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Object_">SizeOf(Object)</a></div>
<div><a class="xref" href="Lucene.Net.Util.RamUsageEstimator.html#Lucene_Net_Util_RamUsageEstimator_HumanReadableUnits_System_Int64_">HumanReadableUnits(Int64)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_HumanSizeOf_System_Object_System_IFormatProvider_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.HumanSizeOf(System.Object%2CSystem.IFormatProvider)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L705">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_HumanSizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.HumanSizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_HumanSizeOf_System_Object_System_IFormatProvider_" data-uid="Lucene.Net.Util.RamUsageEstimator.HumanSizeOf(System.Object,System.IFormatProvider)">HumanSizeOf(Object, IFormatProvider)</h4>
<div class="markdown level1 summary"><p>Return a human-readable size of a given object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string HumanSizeOf(object object, IFormatProvider df)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Object</span></td>
<td><span class="parametername">object</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.IFormatProvider</span></td>
<td><span class="parametername">df</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 id="Lucene_Net_Util_RamUsageEstimator_HumanSizeOf_System_Object_System_IFormatProvider__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Lucene.Net.Util.RamUsageEstimator.html#Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Object_">SizeOf(Object)</a></div>
<div><a class="xref" href="Lucene.Net.Util.RamUsageEstimator.html#Lucene_Net_Util_RamUsageEstimator_HumanReadableUnits_System_Int64_">HumanReadableUnits(Int64)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_ShallowSizeOf_System_Object_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.ShallowSizeOf(System.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L400">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_ShallowSizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.ShallowSizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_ShallowSizeOf_System_Object_" data-uid="Lucene.Net.Util.RamUsageEstimator.ShallowSizeOf(System.Object)">ShallowSizeOf(Object)</h4>
<div class="markdown level1 summary"><p>Estimates a &quot;shallow&quot; memory usage of the given object. For arrays, this will be the
memory taken by array storage (no subreferences will be followed). For objects, this
will be the memory taken by the fields.
<p>
.NET object alignments are also applied.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long ShallowSizeOf(object obj)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Object</span></td>
<td><span class="parametername">obj</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_ShallowSizeOfInstance_System_Type_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.ShallowSizeOfInstance(System.Type)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L424">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_ShallowSizeOfInstance_" data-uid="Lucene.Net.Util.RamUsageEstimator.ShallowSizeOfInstance*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_ShallowSizeOfInstance_System_Type_" data-uid="Lucene.Net.Util.RamUsageEstimator.ShallowSizeOfInstance(System.Type)">ShallowSizeOfInstance(Type)</h4>
<div class="markdown level1 summary"><p>Returns the shallow instance size in bytes an instance of the given class would occupy.
This works with all conventional classes and primitive types, but not with arrays
(the size then depends on the number of elements and varies from object to object).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long ShallowSizeOfInstance(Type clazz)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Type</span></td>
<td><span class="parametername">clazz</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.ArgumentException</span></td>
<td><p>if <code data-dev-comment-type="paramref" class="paramref">clazz</code> is an array class. </p>
</td>
</tr>
</tbody>
</table>
<h5 id="Lucene_Net_Util_RamUsageEstimator_ShallowSizeOfInstance_System_Type__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Lucene.Net.Util.RamUsageEstimator.html#Lucene_Net_Util_RamUsageEstimator_ShallowSizeOf_System_Object_">ShallowSizeOf(Object)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Boolean___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Boolean%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L308">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Boolean___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Boolean[])">SizeOf(Boolean[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">bool[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long SizeOf(bool[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Byte___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Byte%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L293">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Byte___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Byte[])">SizeOf(Byte[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">byte[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long SizeOf(byte[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Byte</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Char___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Char%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L315">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Char___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Char[])">SizeOf(Char[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">char[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long SizeOf(char[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Char</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Double___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Double%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L350">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Double___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Double[])">SizeOf(Double[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">double[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long SizeOf(double[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Double</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Int16___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Int16%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L322">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Int16___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Int16[])">SizeOf(Int16[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">short[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long SizeOf(short[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int16</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Int32___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Int32%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L329">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Int32___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Int32[])">SizeOf(Int32[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">int[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long SizeOf(int[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Int64___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Int64%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L343">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Int64___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Int64[])">SizeOf(Int64[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">long[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long SizeOf(long[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Object_.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L388">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Object_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Object)">SizeOf(Object)</h4>
<div class="markdown level1 summary"><p>Estimates the RAM usage by the given object. It will
walk the object tree and sum up all referenced objects.</p>
<p><strong>Resource Usage:</strong> this method internally uses a set of
every object seen during traversals so it does allocate memory
(it isn&apos;t side-effect free). After the method exits, this memory
should be GCed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long SizeOf(object obj)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Object</span></td>
<td><span class="parametername">obj</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_SByte___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.SByte%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L300">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_SByte___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.SByte[])">SizeOf(SByte[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">sbyte[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public static long SizeOf(sbyte[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.SByte</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Single___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Single%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L336">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Single___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.Single[])">SizeOf(Single[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">float[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static long SizeOf(float[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Single</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_UInt16___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.UInt16%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L373">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_UInt16___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.UInt16[])">SizeOf(UInt16[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">ushort[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public static long SizeOf(ushort[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_UInt32___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.UInt32%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L365">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_UInt32___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.UInt32[])">SizeOf(UInt32[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">uint[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public static long SizeOf(uint[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt32</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator_SizeOf_System_UInt64___.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator.SizeOf(System.UInt64%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L357">View Source</a>
</span>
<a id="Lucene_Net_Util_RamUsageEstimator_SizeOf_" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf*"></a>
<h4 id="Lucene_Net_Util_RamUsageEstimator_SizeOf_System_UInt64___" data-uid="Lucene.Net.Util.RamUsageEstimator.SizeOf(System.UInt64[])">SizeOf(UInt64[])</h4>
<div class="markdown level1 summary"><p>Returns the size in bytes of the <span class="xref">ulong[]</span> object. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public static long SizeOf(ulong[] arr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span>[]</td>
<td><span class="parametername">arr</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int64</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="seealso">See Also</h3>
<div class="seealso">
<div><a class="xref" href="Lucene.Net.Util.RamUsageEstimator.html#Lucene_Net_Util_RamUsageEstimator_SizeOf_System_Object_">SizeOf(Object)</a></div>
<div><a class="xref" href="Lucene.Net.Util.RamUsageEstimator.html#Lucene_Net_Util_RamUsageEstimator_ShallowSizeOf_System_Object_">ShallowSizeOf(Object)</a></div>
<div><a class="xref" href="Lucene.Net.Util.RamUsageEstimator.html#Lucene_Net_Util_RamUsageEstimator_ShallowSizeOfInstance_System_Type_">ShallowSizeOfInstance(Type)</a></div>
</div>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00010/websites/apidocs/apiSpec/new?filename=Lucene_Net_Util_RamUsageEstimator.md&amp;value=---%0Auid%3A%20Lucene.Net.Util.RamUsageEstimator%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/apache/lucenenet/blob/release/Lucene.Net_4_8_0_beta00010/src/Lucene.Net/Util/RamUsageEstimator.cs/#L39" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
Copyright © 2020 Licensed to the Apache Software Foundation (ASF)
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.js"></script>
</body>
</html>