Read Int 24 from byte array

image_pdfimage_print

//http://walkmen.codeplex.com/license
// License: GNU General Public License version 2 (GPLv2)

using System;
using System.Collections.Generic;
using System.Text;

namespace Walkmen.Util
{
public sealed class NumericUtils
{
private NumericUtils()
{
}

public static int ReadInt24(byte[] buffer, int offset)
{
return (buffer[offset + 0] << 16) + (buffer[offset + 1] << 8) + (buffer[offset + 2]); } } } [/csharp]

This entry was posted in Data Types. Bookmark the permalink.