Last change
on this file since 1171 was 1114, checked in by iritscen, 5 years ago |
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.
|
File size:
503 bytes
|
Rev | Line | |
---|
[1114] | 1 | namespace Oni.Metadata
|
---|
| 2 | {
|
---|
| 3 | internal class MetaPadding : MetaArray
|
---|
| 4 | {
|
---|
| 5 | private readonly byte fillByte;
|
---|
| 6 |
|
---|
| 7 | public MetaPadding(int length) : this(length, 0)
|
---|
| 8 | {
|
---|
| 9 | }
|
---|
| 10 |
|
---|
| 11 | public MetaPadding(int length, byte fillByte) : base(MetaType.Byte, length)
|
---|
| 12 | {
|
---|
| 13 | this.fillByte = fillByte;
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | public byte FillByte => fillByte;
|
---|
| 17 |
|
---|
| 18 | public override void Accept(IMetaTypeVisitor visitor) => visitor.VisitPadding(this);
|
---|
| 19 | }
|
---|
| 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.