69#define IS_STREAM(Stream) ( \
70 (((AML_STREAM*)Stream) != NULL) && \
71 (((AML_STREAM*)Stream)->Buffer != NULL))
80#define IS_END_OF_STREAM(Stream) ( \
81 (((AML_STREAM*)Stream)->Index == \
82 ((AML_STREAM*)Stream)->MaxBufferSize))
91#define IS_STREAM_FORWARD(Stream) ( \
92 ((AML_STREAM*)Stream)->Direction == EAmlStreamDirectionForward)
101#define IS_STREAM_BACKWARD(Stream) ( \
102 ((AML_STREAM*)Stream)->Direction == EAmlStreamDirectionBackward)
121 IN UINT32 MaxBufferSize,
445 OUT CHAR8 *DstBuffer,
446 IN UINT32 MaxDstBufferSize,
EFI_STATUS EFIAPI AmlStreamReset(IN AML_STREAM *Stream)
UINT32 EFIAPI AmlStreamGetMaxBufferSize(IN CONST AML_STREAM *Stream)
enum EAmlStreamDirection EAML_STREAM_DIRECTION
UINT32 EFIAPI AmlStreamGetIndex(IN CONST AML_STREAM *Stream)
EFI_STATUS EFIAPI AmlStreamReadByte(IN AML_STREAM *Stream, OUT UINT8 *OutByte)
EAML_STREAM_DIRECTION EFIAPI AmlStreamGetDirection(IN CONST AML_STREAM *Stream)
EFI_STATUS EFIAPI AmlStreamPeekByte(IN AML_STREAM *Stream, OUT UINT8 *OutByte)
@ EAmlStreamDirectionForward
@ EAmlStreamDirectionBackward
@ EAmlStreamDirectionMax
Max enum.
@ EAmlStreamDirectionInvalid
Invalid AML Stream direction.
UINT32 EFIAPI AmlStreamGetFreeSpace(IN CONST AML_STREAM *Stream)
EFI_STATUS EFIAPI AmlStreamCpyS(OUT CHAR8 *DstBuffer, IN UINT32 MaxDstBufferSize, IN AML_STREAM *Stream, IN UINT32 Size)
EFI_STATUS EFIAPI AmlStreamRewind(IN AML_STREAM *Stream, IN UINT32 Offset)
EFI_STATUS EFIAPI AmlStreamProgress(IN AML_STREAM *Stream, IN UINT32 Offset)
EFI_STATUS EFIAPI AmlStreamClone(IN CONST AML_STREAM *Stream, OUT AML_STREAM *ClonedStream)
EFI_STATUS EFIAPI AmlStreamWrite(IN AML_STREAM *Stream, IN CONST UINT8 *Buffer, IN UINT32 Size)
UINT8 *EFIAPI AmlStreamGetCurrPos(IN CONST AML_STREAM *Stream)
UINT8 *EFIAPI AmlStreamGetBuffer(IN CONST AML_STREAM *Stream)
EFI_STATUS EFIAPI AmlStreamReduceMaxBufferSize(IN AML_STREAM *Stream, IN UINT32 Diff)
EFI_STATUS EFIAPI AmlStreamInitSubStream(IN CONST AML_STREAM *Stream, OUT AML_STREAM *SubStream)
BOOLEAN EFIAPI AmlStreamCmp(IN CONST AML_STREAM *Stream1, IN CONST AML_STREAM *Stream2, IN UINT32 Size)
struct AmlStream AML_STREAM
EFI_STATUS EFIAPI AmlStreamInit(IN OUT AML_STREAM *Stream, IN UINT8 *Buffer, IN UINT32 MaxBufferSize, IN EAML_STREAM_DIRECTION Direction)
EAML_STREAM_DIRECTION Direction
UINT8 * Buffer
Pointer to a buffer.
UINT32 MaxBufferSize
Size of Buffer.