mirror of https://github.com/SixLabors/ImageSharp
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.
30 lines
914 B
30 lines
914 B
// <copyright file="TiffGenDataBlock.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
namespace ImageSharp.Tests
|
|
{
|
|
using System.Collections.Generic;
|
|
|
|
/// <summary>
|
|
/// A utility data structure to represent an independent block of data in a Tiff file.
|
|
/// These may be located in any order within a Tiff file.
|
|
/// </summary>
|
|
internal class TiffGenDataBlock
|
|
{
|
|
public TiffGenDataBlock(byte[] bytes)
|
|
{
|
|
this.Bytes = bytes;
|
|
this.References = new List<TiffGenDataReference>();
|
|
}
|
|
|
|
public byte[] Bytes { get; }
|
|
public IList<TiffGenDataReference> References { get; }
|
|
|
|
public void AddReference(byte[] bytes, int offset)
|
|
{
|
|
References.Add(new TiffGenDataReference(bytes, offset));
|
|
}
|
|
}
|
|
}
|