用于生成 Office 文件的 .NET 组件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
587 B

using Npoi.Core.Util;
namespace Npoi.Core.HPSF
{
internal class Blob
{
private byte[] _value;
public Blob(byte[] data, int offset)
{
int size = LittleEndian.GetInt(data, offset);
if (size == 0)
{
_value = new byte[0];
return;
}
_value = LittleEndian.GetByteArray(data, offset
+ LittleEndian.INT_SIZE, size);
}
public int Size
{
get { return LittleEndian.INT_SIZE + _value.Length; }
}
}
}