mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-24 05:03:39 +08:00
#10 move tokens to the root namespace for discoverability. upgrade xunit versions. there is a bug with test discovery for stringtokenizertests
This commit is contained in:
29
src/UglyToad.PdfPig/Tokens/ObjectToken.cs
Normal file
29
src/UglyToad.PdfPig/Tokens/ObjectToken.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace UglyToad.PdfPig.Tokens
|
||||
{
|
||||
using ContentStream;
|
||||
|
||||
internal class ObjectToken : IDataToken<IToken>
|
||||
{
|
||||
/// <summary>
|
||||
/// The offset of the start of the object number in the file bytes.
|
||||
/// </summary>
|
||||
public long Position { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The object and generation number of the object.
|
||||
/// </summary>
|
||||
public IndirectReference Number { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The inner data of the object.
|
||||
/// </summary>
|
||||
public IToken Data { get; }
|
||||
|
||||
public ObjectToken(long position, IndirectReference number, IToken data)
|
||||
{
|
||||
Position = position;
|
||||
Number = number;
|
||||
Data = data;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user