mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@61916 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
2c14c02d7e
commit
809065e725
@ -0,0 +1,28 @@
|
||||
|
||||
#include "AnnotationReferenceDescriptor.h"
|
||||
|
||||
namespace DocFileFormat
|
||||
{
|
||||
ByteStructure* AnnotationReferenceDescriptor::ConstructObject(VirtualStreamReader* reader, int length)
|
||||
{
|
||||
AnnotationReferenceDescriptor *newObject = new AnnotationReferenceDescriptor();
|
||||
|
||||
//read the user initials (LPXCharBuffer9)
|
||||
short cch = reader->ReadInt16();
|
||||
|
||||
unsigned char *chars = reader->ReadBytes(18, true);
|
||||
|
||||
FormatUtils::GetSTLCollectionFromBytes<wstring>( &(newObject->m_UserInitials), chars, ( cch * 2 ), ENCODING_UNICODE);
|
||||
|
||||
newObject->m_AuthorIndex = reader->ReadUInt16();
|
||||
|
||||
//skip 4 bytes
|
||||
reader->ReadBytes(4, false);
|
||||
|
||||
newObject->m_BookmarkId = reader->ReadInt32();
|
||||
|
||||
RELEASEARRAYOBJECTS(chars);
|
||||
|
||||
return static_cast<ByteStructure*>(newObject);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user