1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 7<title>ExtractBits</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../nn/Overview.html">nn</a>::<a href="../../nn/math/Overview.html">math</a>::ExtractBits</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14template <typename T> 15T ExtractBits( 16 <a href="../../nn_types/bit32.html">bit32</a> v, 17 int pos, 18 int len 19); 20 21template <typename T> 22T ExtractBits( 23 <a href="../../nn_types/bit64.html">bit64</a> v, 24 int pos, 25 int len 26); 27</pre> 28 </div> 29<h2>List of Overloaded Member Functions</h2> 30 <div class="section"> 31 <table class="members"> 32 <tr> 33 <td> 34<a href="./ExtractBits(0).html"><CODE>ExtractBits(bit32, int, int)</CODE> </a> 35 </td> 36<td>Extracts the bitstring used to maintain the position.</td> 37 </tr> 38 <tr> 39 <td> 40<a href="./ExtractBits(1).html"><CODE>ExtractBits(bit64, int, int)</CODE> </a> 41 </td> 42<td>Extracts the bitstring used to maintain the position.</td> 43 </tr> </table> 44 </div> 45<h2>Description of <CODE>ExtractBits(bit32, int, int)</CODE></h2> 46<div class="section"><p>Extracts the number of bits given by <CODE>len</CODE>, starting from the bit given by <CODE>pos</CODE> ([pos+len-1,pos]) from the low-order bits of <CODE>v</CODE>.</p><p>You can also make it so that <CODE>0</CODE>'s are created for bits other than those given by <CODE>len</CODE>, starting from the bit given by <CODE>pos</CODE> from the low-order bits of <CODE>v</CODE>.</p><!-- write here --></div> 47<h2>Description of <CODE>ExtractBits(bit64, int, int)</CODE></h2> 48<div class="section"><p>Extracts the number of bits given by <CODE>len</CODE>, starting from the bit given by <CODE>pos</CODE> ([pos+len-1,pos]) from the low-order bits of <CODE>v</CODE>.</p><p>You can also make it so that <CODE>0</CODE>'s are created for bits other than those given by <CODE>len</CODE>, starting from the bit given by <CODE>pos</CODE> from the low-order bits of <CODE>v</CODE>.</p><!-- write here --></div> 49 <hr><p>CONFIDENTIAL</p></body> 50</html>